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
class AuthenticationError : public caosdb::exceptions::Exception
#include <exceptions.h>

Exception for authentication errors.

Public Functions

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)
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 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 ConnectionConfigurationError : public caosdb::exceptions::Exception
#include <exceptions.h>

Exception for errors during the configuration of the connection.

Public Functions

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