MCPcopy Create free account
hub / github.com/apache/arrow / DriverException

Class DriverException

cpp/src/arrow/flight/sql/odbc/odbc_impl/exceptions.h:28–43  ·  view source on GitHub ↗

\brief Base for all driver specific exceptions

Source from the content-addressed store, hash-verified

26
27/// \brief Base for all driver specific exceptions
28class 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
46class AuthenticationException : public DriverException {

Callers 15

SQLGetEnvAttrFunction · 0.85
SQLSetEnvAttrFunction · 0.85
SQLExtendedFetchFunction · 0.85
SQLFetchScrollFunction · 0.85
SQLColAttributeFunction · 0.85
SQLGetTypeInfoFunction · 0.85
SQLCancelFunction · 0.85
SQLForeignKeysFunction · 0.85
SQLPrimaryKeysFunction · 0.85
GetInfoMethod · 0.85
GetNextMethod · 0.85
SetHeaderFieldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected