// file : odb/oracle/errors.hxx // author : Constantin Michael // copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC // license : ODB NCUEL; see accompanying LICENSE file #ifndef ODB_ORACLE_ERRORS_HXX #define ODB_ORACLE_ERRORS_HXX #include #include #include #include namespace odb { namespace oracle { void translate_error (void* h, ub4 t, sword s); // @@ Check connection state attribute once connection has been // implemented. // // Translate OCI error given an error handle and throw an appropriate // exception. // inline LIBODB_ORACLE_EXPORT void translate_error (OCIError* h, sword s) { translate_error (h, OCI_HTYPE_ERROR, s); } // Translate an OCI error given an environment handle error and throw // an appropriate exception. // inline LIBODB_ORACLE_EXPORT void translate_error (OCIEnv* h) { translate_error (h, OCI_HTYPE_ENV, OCI_ERROR); } } } #include #endif // ODB_ORACLE_ERRORS_HXX