Oracle ODB Runtime Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
error.hxx
Go to the documentation of this file.
1 // file : odb/oracle/error.hxx
2 // copyright : Copyright (c) 2005-2013 Code Synthesis Tools CC
3 // license : ODB NCUEL; see accompanying LICENSE file
4 
5 #ifndef ODB_ORACLE_ERROR_HXX
6 #define ODB_ORACLE_ERROR_HXX
7 
8 #include <odb/pre.hxx>
9 
11 #include <odb/oracle/forward.hxx>
12 #include <odb/oracle/version.hxx>
13 #include <odb/oracle/details/export.hxx>
14 
15 namespace odb
16 {
17  namespace oracle
18  {
19  // Translate OCI error given an error handle and throw an appropriate
20  // exception.
21  //
22  LIBODB_ORACLE_EXPORT void
23  translate_error (OCIError*, sword result);
24 
25  LIBODB_ORACLE_EXPORT void
26  translate_error (connection&, sword result);
27 
28  // Translate an OCI error given an environment handle error and throw
29  // an appropriate exception.
30  //
31  LIBODB_ORACLE_EXPORT void
33  }
34 }
35 
36 #include <odb/post.hxx>
37 
38 #endif // ODB_ORACLE_ERROR_HXX
struct OCIError OCIError
Definition: oracle-fwd.hxx:24
struct OCIEnv OCIEnv
Definition: oracle-fwd.hxx:22
signed int sword
Definition: oracle-fwd.hxx:13
LIBODB_ORACLE_EXPORT void translate_error(OCIError *, sword result)