#include <CarobException.hpp>
Inheritance diagram for CarobNS::CarobException:

Public Member Functions | |
| CarobException (const CarobException &ce) | |
| Copy constructor. | |
| CarobException (const DriverSocket &sock) | |
| Constructs/reads a new Exception chain from the stream. | |
| CarobException (const std::wstring &messagePrm, const std::wstring &SQLStatePrm=DEFAULTSQLSTATE, CarobException *causePrm=0, int vendorPrm=DEFAULTVENDORCODE) | |
| Constructs a new exception with the specified detail message and cause. | |
| virtual | ~CarobException () |
| Destructor to clean up stack trace and cause exception. | |
| virtual const std::wstring & | description () const |
| Gets the exception error message. | |
| const StackTrace & | getStackTrace () const |
| Returns the remote java stack trace. | |
| const BackTrace & | getBackTrace () const |
| Returns the local stack trace. | |
| const CarobException * | getNext () const |
| Returns a reference to the next exception in the chain, NULL if tail. | |
| const std::wstring & | getSQLState () const |
| get the SQLState if any | |
| int | getErrorCode () const |
| Retrieves the vendor-specific exception code. | |
Protected Attributes | |
| std::wstring | message |
| Error message. | |
| StackTrace | stackTrace |
| Stack trace as a vector of traces. | |
| CarobException * | causePtr |
| pointer to the exception that generated this one | |
| std::wstring | SQLState |
| SQL2 standard error code. | |
| int | errorCode |
| Deprecated SQL1 "standard" error code. | |
| const BackTrace | backTrace |
| Local stack trace when available. | |
| CarobNS::CarobException::CarobException | ( | const DriverSocket & | sock | ) |
Constructs/reads a new Exception chain from the stream.
| sock | socket from which to deserialize exception |
| SocketIOException. | Not specified in method signature because of forward declarations/loop issue (SocketIOException inherits from CarobException |
| CarobNS::CarobException::CarobException | ( | const std::wstring & | messagePrm, | |
| const std::wstring & | SQLStatePrm = DEFAULTSQLSTATE, |
|||
| CarobException * | causePrm = 0, |
|||
| int | vendorPrm = DEFAULTVENDORCODE | |||
| ) | [inline] |
Constructs a new exception with the specified detail message and cause.
Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.
| messagePrm | the detailed user-friendly message | |
| SQLStatePrm | the SQL2 standard error code. | |
| causePrm | the exception that generated this one, if any. | |
| vendorPrm | the (deprecated) SQL1 error code |
int CarobNS::CarobException::errorCode [protected] |
Deprecated SQL1 "standard" error code.
Negative for errors, positive for warnings.
1.5.0