Instances of the class IldDiagnostic are used to store the context in which an error or a warning was raised.
More...
#include <ildblink/ilderr.h>
Public Member Functions | |
| IlInt | getCode () const |
| Get the error code. More... | |
| const char * | getConnection () const |
| Get the connection string. More... | |
| IldFuncId | getFunctionCode () const |
| Get the function code. More... | |
| const char * | getMessage () const |
| Get the error message. More... | |
| const char * | getName () const |
| Get the name of the object in error. More... | |
| IlInt | getNativeCode () const |
| Get the native error code. More... | |
| IldErrorOrigin | getOrigin () const |
| Get the origin of the error. More... | |
| const char * | getSqlstate () const |
| Get the SQL state. More... | |
Instances of the class IldDiagnostic are used to store the context in which an error or a warning was raised.
Library: dbkernel
| IlInt IldDiagnostic::getCode | ( | ) | const |
Get the error code.
getOrigin member function. When code and native code are equal, the error orignates from the RDBMS client native library. | const char * IldDiagnostic::getConnection | ( | ) | const |
Get the connection string.
| IldFuncId IldDiagnostic::getFunctionCode | ( | ) | const |
Get the function code.
The possible codes are values of the IldFuncId enumeration.
| const char * IldDiagnostic::getMessage | ( | ) | const |
Get the error message.
| const char * IldDiagnostic::getName | ( | ) | const |
Get the name of the object in error.
If it is not applicable, it returns a null pointer.
| IlInt IldDiagnostic::getNativeCode | ( | ) | const |
Get the native error code.
If the error was raised by the Rogue Wave Views DBLink API, it returns 0.
| IldErrorOrigin IldDiagnostic::getOrigin | ( | ) | const |
Get the origin of the error.
| const char * IldDiagnostic::getSqlstate | ( | ) | const |
Get the SQL state.
SQLSTATE string corresponding to the error.