An exception class is provided in order to support common exception handling. When an odaba::Exception is thrown, the exception provides an odaba error code and its documentation, which might be displayed to the user when the exception is caught.
In some cases, exceptions are thrown, because no result could be provided. In this case the exception error is 0, which indicated usually, that no data is available.
Typically, exceptions are thrown, when calling a function with an invalid handle or a handle, which does not fulfill necessary requirements. In such cases, an error code informs about the access rules violated.
- Exception - Exception handling