Oracle C++ Call Interface Programmer's Guide Release 2 (9.2) Part Number A96583-01 |
|
OCCI Classes and Methods, 19 of 22
The SQLException
class provides information on generated errors, their codes and associated messages.
This is the SQLException
constructor.
There are variants of syntax:
SQLException();
SQLException(const SQLException &e);
Method | Summary |
---|---|
Return the database error code. |
|
Return the error message string for this exception. |
|
Set the error context. |
Gets the database error code.
int getErrorCode() const;
Returns the error message string of this SQLException
if it was created with an error message string. Returns null if the SQLException
was created with no error message.
string getMessage() const;
Sets the pointer to the error context.
void setErrorCtx(void *ctx);
The pointer to the error context.
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|