/* ----------------------------------------------------------------------- *//** * * @file PGException_proto.hpp * *//* ----------------------------------------------------------------------- */ #ifndef MADLIB_POSTGRES_PGEXCEPTION_PROTO_HPP #define MADLIB_POSTGRES_PGEXCEPTION_PROTO_HPP namespace madlib { namespace dbconnector { namespace postgres { /** * @brief Unspecified PostgreSQL backend expcetion */ class PGException : public std::runtime_error { public: explicit PGException() : std::runtime_error("The backend raised an exception.") { } // FIXME: Do something useful with inErrorData PGException(ErrorData* /* inErrorData */) : std::runtime_error("The backend raised an exception.") { } }; } // namespace postgres } // namespace dbconnector } // namespace madlib #endif // defined(MADLIB_POSTGRES_PGEXCEPTION_PROTO_HPP)