|  | OCILIB (C and C++ Driver for Oracle)
    4.7.7
    Open source and cross platform Oracle Driver delivering efficient access to Oracle databases. | 
Exception class handling all OCILIB errors. More...
#include <types.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 core::Enum< ExceptionTypeValues > | ExceptionType | 
| Type of Exception. | |
| 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. | |
| const char * | what () const noexcept override | 
| Override the std::exception::what() method. | |
| virtual | ~Exception () noexcept | 
| Virtual destructor required for deriving from std::exception. | |
Exception class handling all OCILIB errors.
This class wraps the OCILIB object handle OCI_Error and its related methods
Type of Exception.
Possible values are Exception::ExceptionTypeValues
| 
 | inlinevirtualnoexcept | 
Virtual destructor required for deriving from std::exception.
Definition at line 56 of file Exception.hpp.
| 
 | inline | 
| 
 | inline | 
Return the Exception type.
Definition at line 198 of file Exception.hpp.
| 
 | inline | 
Return the Oracle error code.
Definition at line 203 of file Exception.hpp.
| 
 | inline | 
Return the OCILIB error code.
Definition at line 208 of file Exception.hpp.
| 
 | inline | 
Return the statement within the error occurred.
Definition at line 213 of file Exception.hpp.
| 
 | inline | 
Return the connection within the error occurred.
Definition at line 218 of file Exception.hpp.
| 
 | inline | 
Return the row index which caused an error during statement execution.
Definition at line 223 of file Exception.hpp.
| 
 | inlineoverridenoexcept | 
Override the std::exception::what() method.
Definition at line 147 of file Exception.hpp.
Referenced by GetMessage().