5#ifndef ASTARTE_DEVICE_SDK_MQTT_ERRORS_H
6#define ASTARTE_DEVICE_SDK_MQTT_ERRORS_H
55 static constexpr std::string_view k_type_ =
"MqttError";
75 static constexpr std::string_view k_type_ =
"PairingApiError";
95 static constexpr std::string_view k_type_ =
"InvalidUrlError";
115 static constexpr std::string_view k_type_ =
"DeviceRegistrationError";
135 static constexpr std::string_view k_type_ =
"JsonParsingError";
155 static constexpr std::string_view k_type_ =
"RetrieveBrokerUrlError";
175 static constexpr std::string_view k_type_ =
"ReadCredentialError";
195 static constexpr std::string_view k_type_ =
"WriteCredentialError";
215 static constexpr std::string_view k_type_ =
"PairingConfigError";
235 static constexpr std::string_view k_type_ =
"CryptoError";
255 static constexpr std::string_view k_type_ =
"UuidError";
275 static constexpr std::string_view k_type_ =
"HttpError";
295 static constexpr std::string_view k_type_ =
"MqttConnectionError";
auto message() const -> const std::string &
Retrieves the error message.
ErrorBase(const ErrorBase &)=default
Default copy constructor.
CryptoError(std::string_view message, const Error &other)
Nested error constructor.
CryptoError(std::string_view message)
Standard error constructor.
DeviceRegistrationError(std::string_view message)
Standard error constructor.
DeviceRegistrationError(std::string_view message, const Error &other)
Nested error constructor.
HttpError(std::string_view message, const Error &other)
Nested error constructor.
HttpError(std::string_view message)
Standard error constructor.
InvalidUrlError(std::string_view message)
Standard error constructor.
InvalidUrlError(std::string_view message, const Error &other)
Nested error constructor.
JsonParsingError(std::string_view message, const Error &other)
Nested error constructor.
JsonParsingError(std::string_view message)
Standard error constructor.
MqttConnectionError(std::string_view message)
Standard error constructor.
MqttConnectionError(std::string_view message, const Error &other)
Nested error constructor.
MqttError()
Error constructor with no message.
MqttError(std::string_view message)
Standard error constructor.
MqttError(const Error &other)
Nested error constructor with no message.
MqttError(std::string_view message, const Error &other)
Nested error constructor.
PairingApiError(std::string_view message, const Error &other)
Nested error constructor.
PairingApiError(std::string_view message)
Standard error constructor.
PairingConfigError(std::string_view message)
Standard error constructor.
PairingConfigError(std::string_view message, const Error &other)
Nested error constructor.
ReadCredentialError(std::string_view message)
Standard error constructor.
ReadCredentialError(std::string_view message, const Error &other)
Nested error constructor.
RetrieveBrokerUrlError(std::string_view message, const Error &other)
Nested error constructor.
RetrieveBrokerUrlError(std::string_view message)
Standard error constructor.
UuidError(std::string_view message, const Error &other)
Nested error constructor.
UuidError(std::string_view message)
Standard error constructor.
WriteCredentialError(std::string_view message, const Error &other)
Nested error constructor.
WriteCredentialError(std::string_view message)
Standard error constructor.
Error types and handling for the Astarte device library.
Namespace for Astarte device functionality using the MQTT transport protocol.
Definition errors.hpp:57
std::variant< DataSerializationError, InternalError, FileOpenError, InvalidInputError, InterfaceValidationError, InvalidInterfaceVersionError, InvalidInterfaceTypeError, InvalidInterfaceOwnershipeError, InvalidInterfaceAggregationError, InvalidAstarteTypeError, InvalidReliabilityError, InvalidRetentionError, InvalidDatabaseRetentionPolicyError, OperationRefusedError, GrpcLibError, MsgHubError, mqtt::JsonParsingError, mqtt::DeviceRegistrationError, mqtt::PairingApiError, mqtt::MqttError, mqtt::InvalidUrlError, mqtt::RetrieveBrokerUrlError, mqtt::ReadCredentialError, mqtt::WriteCredentialError, mqtt::PairingConfigError, mqtt::CryptoError, mqtt::UuidError, mqtt::HttpError, mqtt::MqttConnectionError > Error
Variant type representing any error from the Astarte device library.
Definition errors.hpp:80