|
CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
|
Represents an error with both an error code and a message. More...
#include <CCSDSResult.h>
Public Member Functions | |
| Error (const ErrorCode code, std::string message) | |
| Constructs an error with a given error code and message. | |
| ErrorCode | code () const |
| Retrieves the error code. | |
| const std::string & | message () const |
| Retrieves the error message. | |
Private Attributes | |
| ErrorCode | m_code |
| The error type. | |
| std::string | m_message |
| A detailed message describing the error. | |
Represents an error with both an error code and a message.
This class is used to provide additional error context by combining an ErrorCode with a detailed message, allowing differentiation between multiple errors of the same type.
Definition at line 44 of file CCSDSResult.h.
|
inline |
Constructs an error with a given error code and message.
| code | The error code representing the type of error. |
| message | A detailed description of the error. |
Definition at line 51 of file CCSDSResult.h.
|
inline |
Retrieves the error code.
ErrorCode. Definition at line 59 of file CCSDSResult.h.
|
inline |
Retrieves the error message.
Definition at line 65 of file CCSDSResult.h.
|
private |
The error type.
Definition at line 68 of file CCSDSResult.h.
|
private |
A detailed message describing the error.
Definition at line 69 of file CCSDSResult.h.