diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-11-29 14:52:55 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-11-30 11:32:07 +0200 |
commit | 7d784a9f398abf114376a958c4eedb7ee4b8ccf0 (patch) | |
tree | 5f72df12d47ab57b76d45d1a82a3a9b8892c4722 /odb/oracle/exceptions.hxx | |
parent | c352bdb8b4ee7a636f71a71a301c181942af2d39 (diff) |
Use sb4 as error code type instead of int in database_exception
Diffstat (limited to 'odb/oracle/exceptions.hxx')
-rw-r--r-- | odb/oracle/exceptions.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/odb/oracle/exceptions.hxx b/odb/oracle/exceptions.hxx index db4ffe9..9720f36 100644 --- a/odb/oracle/exceptions.hxx +++ b/odb/oracle/exceptions.hxx @@ -14,6 +14,7 @@ #include <odb/exceptions.hxx> #include <odb/oracle/version.hxx> +#include <odb/oracle/oracle-fwd.hxx> #include <odb/oracle/details/export.hxx> namespace odb @@ -24,9 +25,9 @@ namespace odb { struct record { - record (int error, const std::string& message); + record (sb4 error, const std::string& message); - int + sb4 error () const { return error_; @@ -39,7 +40,7 @@ namespace odb } private: - int error_; + sb4 error_; std::string message_; }; @@ -70,14 +71,13 @@ namespace odb ~database_exception () throw (); database_exception (); - database_exception (int error, const std::string& message); + database_exception (sb4 error, const std::string& message); virtual const char* what () const throw (); void - append (int error, - const std::string& message); + append (sb4 error, const std::string& message); private: records records_; |