caosdb/exceptions.h

namespace caosdb::exceptions
class AuthenticationError : public caosdb::exceptions::Exception
#include <exceptions.h>

Exception for authentication errors.

Public Functions

inline explicit AuthenticationError(const std::string &what_arg)
class ConfigurationError : public caosdb::exceptions::Exception
#include <exceptions.h>

Exception for errors of the ConfigurationManager or other components of the configuration.

Public Functions

inline explicit ConfigurationError(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)
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::ConnectionError, caosdb::exceptions::TransactionError, caosdb::exceptions::TransactionStatusError, caosdb::exceptions::TransactionTypeError, caosdb::exceptions::UnknownConnectionError

Public Functions

inline explicit Exception(StatusCode code, const std::string &what_arg)
inline auto GetCode() const -> StatusCode

Private Members

StatusCode code
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)
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)
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)
class UnknownConnectionError : public caosdb::exceptions::Exception
#include <exceptions.h>

The connection isn’t known to the ConnectionManager under this name.

Public Functions

inline explicit UnknownConnectionError(const std::string &what_arg)