#include <Exception.hpp>
Public Member Functions | |
Exception (int ret_cod, const string &function) | |
int | getReturnCode () |
string | getReturnCodeText () |
const string & | where () |
~Exception () throw () | |
Private Attributes | |
string | Function |
int | ReturnCode |
XTA exception class, it extends standard exception class and adds the return code property that maps on C API. It inherits from stdexcept::runtime_error, so you can simply catch "exception" or "runtime_error", but add LIXA specific info: the reason code returned by the failed C XTA function and the name of the C XTA function that failed
Definition at line 47 of file Exception.hpp.
|
inline |
Default constructor
[in] | ret_cod | returned by the failed C XTA function |
[in] | function | name where the expection has been raised |
Definition at line 64 of file Exception.hpp.
|
inline |
Definition at line 69 of file Exception.hpp.
|
inline |
Retrieve the numeric return code of the failed C function
Definition at line 75 of file Exception.hpp.
|
inline |
Retrieve the description associated to the numeric return code of the failed C function
Definition at line 82 of file Exception.hpp.
|
inline |
Definition at line 70 of file Exception.hpp.
|
private |
Name of the function where exception happened
Definition at line 56 of file Exception.hpp.
|
private |
LIXA return code returned by the failed C function
Definition at line 52 of file Exception.hpp.