![]() |
Project
|
Error handling of the RCU trailer. More...
#include <RCUTrailer.h>
Inherits std::exception.
Public Types | |
enum class | ErrorType_t { DECODING_INVALID , SIZE_INVALID , SAMPLINGFREQ_INVALID , L1PHASE_INVALID } |
Error codes for different error types. More... | |
Public Member Functions | |
Error (ErrorType_t errtype, const char *message) | |
Constructor. | |
~Error () noexcept override=default | |
Destructor. | |
const char * | what () const noexcept override |
Access to the error message. | |
ErrorType_t | getErrorType () const noexcept |
Access to error code. | |
Error handling of the RCU trailer.
Definition at line 79 of file RCUTrailer.h.
|
strong |
Error codes for different error types.
Enumerator | |
---|---|
DECODING_INVALID | Invalid words during decoding. |
SIZE_INVALID | Invalid trailer size. |
SAMPLINGFREQ_INVALID | Invalid sampling frequency. |
L1PHASE_INVALID | Invalid L1 phase. |
Definition at line 84 of file RCUTrailer.h.
|
inline |
Constructor.
errtype | Code of the error type |
message | corresponding error message |
Initializing the error with error code and message. To be called when the exception is raised.
Definition at line 97 of file RCUTrailer.h.
|
overridedefaultnoexcept |
Destructor.
|
inlinenoexcept |
Access to error code.
Definition at line 108 of file RCUTrailer.h.
|
inlineoverridenoexcept |
Access to the error message.
Definition at line 104 of file RCUTrailer.h.