All DB-related errors manifest themselves as exceptions of type SOCIError
,
which is derived from std::runtime_error
.
This allows to
handle database errors within the standard exception framework:
int main() |
Portability note:
The Oracle backend can also throw the instances of the OracleSOCIError
,
which is publicly derived from SOCIError
and has an
additional public errNum_
member containing the Oracle error code:
int main() |
Previous
(Library structure, files and compilation) |
Next (Connections and simple queries) |