Error in usage of libpqxx library, similar to std::logic_error. More...
#include <except.hxx>
Public Member Functions | |
usage_error (const PGSTD::string &) | |
Private Member Functions | |
virtual const PGSTD::exception & | base () const throw () |
Return std::exception base-class object. More... | |
Error in usage of libpqxx library, similar to std::logic_error.
|
explicit |
|
inlineprivatevirtual |
Return std::exception base-class object.
Use this to get at the exception's what() function, or to downcast to a more specific type using dynamic_cast.
Casting directly from pqxx_exception to a specific exception type is not likely to work since pqxx_exception is not (and could not safely be) derived from std::exception.
For example, to test dynamically whether an exception is an sql_error:
Implements pqxx::pqxx_exception.