![]() |
C Driver API 3.0.0
API for the NuoDB C Driver Library
|
NuoDB error information data structure More...
#include <error.h>
Data Fields | |
_NuoDB_Error_state_t * | _state |
NuoDB_Connection *(* | getConnection )(NuoDB_Error *_this) |
Returns the NuoDB_Connection for the specified error data structure. | |
const char *(* | getSqlState )(NuoDB_Error *_this) |
Returns the SQL State string. | |
NuoDB_Statement *(* | getStatement )(NuoDB_Error *_this) |
Returns the NuoDB_Statement for the specified error data structure, if known. | |
NuoDB_Status(* | getStatus )(NuoDB_Error *_this) |
Returns the error status, which is a enumerated integer code for errors that can be returned by this driver. | |
const char *(* | getText )(NuoDB_Error *_this) |
Returns text of the error message. | |
const char *(* | getTrace )(NuoDB_Error *_this) |
Returns stack trace for the error. | |
NuoDB error information data structure
The NuoDB_Error data structure contains information about a error condition.
There are three mechanisms for error handling:
NuoDB_Connection *(* NuoDB_Error::getConnection) (NuoDB_Error *_this) |
Returns the NuoDB_Connection for the specified error data structure.
[in] | _this | a pointer to the current (this) data structure. |
const char *(* NuoDB_Error::getSqlState) (NuoDB_Error *_this) |
Returns the SQL State string.
[in] | _this | a pointer to the current (this) data structure. |
NuoDB_Statement *(* NuoDB_Error::getStatement) (NuoDB_Error *_this) |
Returns the NuoDB_Statement for the specified error data structure, if known.
[in] | _this | a pointer to the current (this) data structure. |
NuoDB_Status(* NuoDB_Error::getStatus) (NuoDB_Error *_this) |
Returns the error status, which is a enumerated integer code for errors that can be returned by this driver.
[in] | _this | a pointer to the current (this) data structure. |
const char *(* NuoDB_Error::getText) (NuoDB_Error *_this) |
Returns text of the error message.
[in] | _this | a pointer to the current (this) data structure. |
const char *(* NuoDB_Error::getTrace) (NuoDB_Error *_this) |
Returns stack trace for the error.
If the stack trace is known at the point of the error condition, then the return value will contain a pointer to a string that represents the entire stack trace.
[in] | _this | a pointer to the current (this) data structure. |