|
OCILIB (C and C++ Driver for Oracle)
4.6.3
|
Exception class handling all OCILIB errors. More...
#include <ocilib.hpp>
Inherits std::exception.
Public Types | |
| enum | ExceptionTypeValues { OracleError = OCI_ERR_ORACLE, OcilibError = OCI_ERR_OCILIB, OracleWarning = OCI_ERR_WARNING } |
| Exception type enumerated values. More... | |
| typedef Enum< ExceptionTypeValues > | ExceptionType |
| Type of Exception. More... | |
Public Member Functions | |
| ostring | GetMessage () const |
| Retrieve the error message. | |
| ExceptionType | GetType () const |
| Return the Exception type. | |
| int | GetOracleErrorCode () const |
| Return the Oracle error code. | |
| int | GetInternalErrorCode () const |
| Return the OCILIB error code. | |
| Statement | GetStatement () const |
| Return the statement within the error occurred. | |
| Connection | GetConnection () const |
| Return the connection within the error occurred. | |
| unsigned int | GetRow () const |
| Return the row index which caused an error during statement execution. More... | |
| const char * | what () const override throw () |
| Override the std::exception::what() method. More... | |
| virtual | ~Exception () throw () |
| Virtual destructor required for deriving from std::exception. | |
Friends | |
| template<class T > | |
| T | Check (T result) |
| Internal usage. Checks if the last OCILIB function call has raised an error. If so, it raises a C++ exception using the retrieved error handle. | |
Exception class handling all OCILIB errors.
This class wraps the OCILIB object handle OCI_Error and its related methods
Definition at line 536 of file ocilib.hpp.
Type of Exception.
Possible values are Exception::ExceptionTypeValues
Definition at line 566 of file ocilib.hpp.
|
inline |
Return the row index which caused an error during statement execution.
Definition at line 1018 of file ocilib_impl.hpp.
|
inlineoverride | |||||||||||||
Override the std::exception::what() method.
Definition at line 971 of file ocilib_impl.hpp.