Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
AstarteDeviceSdk::AstarteInternalError Class Reference

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

#include <errors.hpp>

+ Inheritance diagram for AstarteDeviceSdk::AstarteInternalError:

Public Member Functions

 AstarteInternalError (std::string_view message)
 Standard error constructor.
 
 AstarteInternalError (std::string_view message, const AstarteError &other)
 Nested error constructor.
 
- Public Member Functions inherited from AstarteDeviceSdk::AstarteErrorBase
virtual ~AstarteErrorBase ()
 Destructor for the Astarte error.
 
auto message () const -> const std::string &
 Return the message encapsulated in the error.
 
auto type () const -> const std::string &
 Return the type encapsulated in the error.
 
auto nested_error () const -> const std::shared_ptr< AstarteErrorBase > &
 Return the nested error.
 

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

◆ AstarteInternalError() [1/2]

AstarteDeviceSdk::AstarteInternalError::AstarteInternalError ( std::string_view message)
explicit

Standard error constructor.

Parameters
messageThe error message.

◆ AstarteInternalError() [2/2]

AstarteDeviceSdk::AstarteInternalError::AstarteInternalError ( std::string_view message,
const AstarteError & other )
explicit

Nested error constructor.

Parameters
messageThe error message.
otherThe error to nest.

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