linkahead/exceptions.h

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

Exception for authentication errors.

Public Functions

inline explicit AuthenticationError(const std::string &what_arg)
class ConfigurationError : public linkahead::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 linkahead::exceptions::Exception
#include <exceptions.h>

Exception for errors during the configuration of the connection.

Public Functions

inline explicit ConnectionConfigurationError(const std::string &what_arg)
class ConnectionError : public linkahead::exceptions::Exception
#include <exceptions.h>

The connection to the LinkAhead 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 linkahead client library.

Subclassed by linkahead::exceptions::AuthenticationError, linkahead::exceptions::ConfigurationError, linkahead::exceptions::ConnectionConfigurationError, linkahead::exceptions::ConnectionError, linkahead::exceptions::TransactionError, linkahead::exceptions::TransactionStatusError, linkahead::exceptions::TransactionTypeError

Public Functions

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

Private Members

StatusCode code
class TransactionError : public linkahead::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 linkahead::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 linkahead::exceptions::Exception
#include <exceptions.h>

The transaction has a wrong type for your action.

Public Functions

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