Invalid argument passed to libpqxx, similar to std::invalid_argument. More...
#include <except.hxx>
Public Member Functions | |
argument_error (const PGSTD::string &) | |
Private Member Functions | |
virtual const PGSTD::exception & | base () const throw () |
Return std::exception base-class object. More... | |
Invalid argument passed to libpqxx, similar to std::invalid_argument.
|
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.