Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
astarte::device::mqtt::PairingApiError Class Reference

Specific error for when an operation failed due to an internal error. More...

#include <errors.hpp>

+ Inheritance diagram for astarte::device::mqtt::PairingApiError:

Public Member Functions

 PairingApiError (std::string_view message)
 Standard error constructor.
 
 PairingApiError (std::string_view message, const Error &other)
 Nested error constructor.
 
- Public Member Functions inherited from astarte::device::ErrorBase
virtual ~ErrorBase ()=default
 Destructor for the Astarte error.
 
 ErrorBase (const ErrorBase &)=default
 Default copy constructor.
 
auto operator= (const ErrorBase &) -> ErrorBase &=default
 Default copy assignment operator.
 
 ErrorBase (ErrorBase &&)=delete
 Delete move constructor.
 
auto operator= (ErrorBase &&) -> ErrorBase &=default
 Default move assignment operator.
 
auto message () const -> const std::string &
 Retrieves the error message.
 
auto type () const -> const std::string &
 Retrieves the error type string.
 
auto nested_error () const -> const std::shared_ptr< ErrorBase > &
 Retrieves the nested error, if any.
 

Additional Inherited Members

- Protected Member Functions inherited from astarte::device::ErrorBase
 ErrorBase (std::string_view type, std::string_view message)
 Constructor for the Astarte error.
 
 ErrorBase (std::string_view type, std::string_view message, const ErrorBase &other)
 Wrapping constructor for the Astarte error.
 

Detailed Description

Specific error for when an operation failed due to an internal error.

Constructor & Destructor Documentation

◆ PairingApiError() [1/2]

astarte::device::mqtt::PairingApiError::PairingApiError ( std::string_view message)
explicit

Standard error constructor.

Parameters
[in]messageThe error message.

◆ PairingApiError() [2/2]

astarte::device::mqtt::PairingApiError::PairingApiError ( std::string_view message,
const Error & other )
explicit

Nested error constructor.

Parameters
[in]messageThe error message.
[in]otherThe error to nest.

The documentation for this class was generated from the following file: