From 62e234c114d2b6ead93a1d39593c66b648c3d0a6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 1 Feb 2024 15:47:37 +0300 Subject: Turn libodb-oracle repository into package for muti-package repository --- libodb-oracle/odb/oracle/error.hxx | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 libodb-oracle/odb/oracle/error.hxx (limited to 'libodb-oracle/odb/oracle/error.hxx') diff --git a/libodb-oracle/odb/oracle/error.hxx b/libodb-oracle/odb/oracle/error.hxx new file mode 100644 index 0000000..50092c8 --- /dev/null +++ b/libodb-oracle/odb/oracle/error.hxx @@ -0,0 +1,41 @@ +// file : odb/oracle/error.hxx +// 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 -- cgit v1.1