|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
Exception class handling all OCILIB errors. More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_Error * >, and 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... | |
| virtual const char * | what () const throw () |
| Override the std::exception::what() method. More... | |
| virtual | ~Exception () throw () |
| Virtual destructor required for deriving from std::exception. | |
Friends | |
| void | Check () |
| Internal usage. Checks if the last OCILIB method 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 433 of file ocilib.hpp.
Type of Exception.
Possible values are Exception::ExceptionTypeValues
Definition at line 462 of file ocilib.hpp.
|
inline |
Return the row index which caused an error during statement execution.
Definition at line 697 of file ocilib_impl.hpp.
References OCI_ErrorGetRow().
|
inlinevirtual | |||||||||||||
Override the std::exception::what() method.
Definition at line 662 of file ocilib_impl.hpp.