caosdb/exceptions.h
-
namespace caosdb
-
namespace exceptions
-
class Exception : public runtime_error
- #include <exceptions.h>
Generic exception class of the caosdb client library.
Subclassed by caosdb::exceptions::AuthenticationError, caosdb::exceptions::ConfigurationError, caosdb::exceptions::ConnectionConfigurationError, caosdb::exceptions::ConnectionError, caosdb::exceptions::TransactionError, caosdb::exceptions::TransactionStatusError, caosdb::exceptions::TransactionTypeError
Public Functions
-
inline explicit Exception(StatusCode code, const std::string &what_arg)
-
inline auto GetCode() const -> StatusCode
Private Members
-
StatusCode code
-
inline explicit Exception(StatusCode code, const std::string &what_arg)
-
class AuthenticationError : public caosdb::exceptions::Exception
- #include <exceptions.h>
Exception for authentication errors.
Public Functions
-
inline explicit AuthenticationError(const std::string &what_arg)
-
inline explicit AuthenticationError(const std::string &what_arg)
-
class ConnectionError : public caosdb::exceptions::Exception
- #include <exceptions.h>
The connection to the CaosDB server is down.
Public Functions
-
inline explicit ConnectionError(const std::string &what_arg)
-
inline explicit ConnectionError(const std::string &what_arg)
-
class TransactionError : public caosdb::exceptions::Exception
- #include <exceptions.h>
The transaction terminated unsuccessfully.
Public Functions
-
inline explicit TransactionError(const std::string &what_arg)
Protected Functions
-
inline TransactionError(StatusCode code, const std::string &what_arg)
-
inline explicit TransactionError(const std::string &what_arg)
-
class TransactionStatusError : public caosdb::exceptions::Exception
- #include <exceptions.h>
The transaction is in the wrong state for your action.
Public Functions
-
inline explicit TransactionStatusError(const std::string &what_arg)
-
inline explicit TransactionStatusError(const std::string &what_arg)
-
class TransactionTypeError : public caosdb::exceptions::Exception
- #include <exceptions.h>
The transaction has a wrong type for your action.
Public Functions
-
inline explicit TransactionTypeError(const std::string &what_arg)
-
inline explicit TransactionTypeError(const std::string &what_arg)
-
class Exception : public runtime_error
-
namespace exceptions