\brief Base for all driver specific exceptions
| 26 | |
| 27 | /// \brief Base for all driver specific exceptions |
| 28 | class DriverException : public std::exception { |
| 29 | public: |
| 30 | explicit DriverException(std::string message, std::string sql_state = "HY000", |
| 31 | int32_t native_error = ODBCErrorCodes_GENERAL_ERROR); |
| 32 | |
| 33 | const char* what() const throw() override; |
| 34 | |
| 35 | const std::string& GetMessageText() const; |
| 36 | const std::string& GetSqlState() const; |
| 37 | int32_t GetNativeError() const; |
| 38 | |
| 39 | private: |
| 40 | const std::string msg_text_; |
| 41 | const std::string sql_state_; |
| 42 | const int32_t native_error_; |
| 43 | }; |
| 44 | |
| 45 | /// \brief Authentication specific exception |
| 46 | class AuthenticationException : public DriverException { |
no outgoing calls
no test coverage detected