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

Error reported by the gRPC transport library. More...

#include <errors.hpp>

+ Inheritance diagram for AstarteDeviceSdk::AstarteGrpcLibError:

Public Member Functions

 AstarteGrpcLibError (std::string_view message)
 Standard error constructor.
 
 AstarteGrpcLibError (std::string_view message, const AstarteError &other)
 Nested error constructor.
 
 AstarteGrpcLibError (std::uint64_t code, std::string_view message)
 Error constructor including gRPC error codes.
 
 AstarteGrpcLibError (std::uint64_t code, std::string_view message, const AstarteError &other)
 Nested error constructor including gRPC error codes.
 
- 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

Error reported by the gRPC transport library.

Constructor & Destructor Documentation

◆ AstarteGrpcLibError() [1/4]

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

Standard error constructor.

Parameters
messageThe error message.

◆ AstarteGrpcLibError() [2/4]

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

Nested error constructor.

Parameters
messageThe error message.
otherThe error to nest.

◆ AstarteGrpcLibError() [3/4]

AstarteDeviceSdk::AstarteGrpcLibError::AstarteGrpcLibError ( std::uint64_t code,
std::string_view message )
explicit

Error constructor including gRPC error codes.

Parameters
codeThe error code returned by the gRPC library.
messageThe error message.

◆ AstarteGrpcLibError() [4/4]

AstarteDeviceSdk::AstarteGrpcLibError::AstarteGrpcLibError ( std::uint64_t code,
std::string_view message,
const AstarteError & other )
explicit

Nested error constructor including gRPC error codes.

Parameters
codeThe error code returned by the gRPC library.
messageThe error message.
otherThe error to nest.

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