14 explicit AxiamError(
const std::string& message) : std::runtime_error(message) {}
33 action_(std::move(
action)),
36 const std::optional<std::string>&
action() const noexcept {
return action_; }
37 const std::optional<std::string>&
resource_id() const noexcept {
return resource_id_; }
40 std::optional<std::string> action_;
41 std::optional<std::string> resource_id_;
56 const std::string&
cause() const noexcept {
return cause_; }
Authentication failure: wrong credentials, expired session, MFA failure, or a 401 on the refresh call...
Definition errors.hpp:19
AuthError(const std::string &message)
Definition errors.hpp:21
Authorization failure: authenticated but not permitted.
Definition errors.hpp:26
AuthzError(const std::string &message)
Definition errors.hpp:28
const std::optional< std::string > & resource_id() const noexcept
Definition errors.hpp:37
AuthzError(const std::string &message, std::optional< std::string > action, std::optional< std::string > resource_id)
Definition errors.hpp:30
const std::optional< std::string > & action() const noexcept
Definition errors.hpp:36
Base class for every error the SDK raises. Never carries raw token material.
Definition errors.hpp:12
AxiamError(const std::string &message)
Definition errors.hpp:14
Transport-level failure: connection refused, timeout, TLS error, DNS failure, malformed request (400)...
Definition errors.hpp:47
const std::string & cause() const noexcept
The underlying OS / transport error that triggered this failure.
Definition errors.hpp:56
NetworkError(const std::string &message, std::string cause)
Definition errors.hpp:52
NetworkError(const std::string &message)
Definition errors.hpp:49
Definition authenticator.hpp:40