// file : odb/oracle/error.hxx // copyright : Copyright (c) 2005-2018 Code Synthesis Tools CC // license : ODB NCUEL; see accompanying LICENSE file #ifndef ODB_ORACLE_ERROR_HXX #define ODB_ORACLE_ERROR_HXX #include #include // std::size_t #include #include // connection, multiple_exceptions #include #include namespace odb { namespace oracle { // Translate OCI error given an error handle and throw (or return, // in case multiple_exceptions is not NULL) an appropriate exception. // LIBODB_ORACLE_EXPORT void translate_error (OCIError*, sword result, connection* = 0, std::size_t pos = 0, multiple_exceptions* = 0); LIBODB_ORACLE_EXPORT void translate_error (connection&, sword result); // Translate an OCI error given an environment handle error and throw // an appropriate exception. // LIBODB_ORACLE_EXPORT void translate_error (OCIEnv*); } } #include #endif // ODB_ORACLE_ERROR_HXX