![]() |
Project
|
Error handling of the raw reader. More...
#include <RawDecodingError.h>
Inherits std::exception.
Public Types | |
enum class | ErrorType_t { PAGE_NOTFOUND , HEADER_DECODING , PAYLOAD_DECODING , HEADER_INVALID , PAYLOAD_INVALID } |
Codes for different error types. More... | |
Public Member Functions | |
RawDecodingError (ErrorType_t errtype) | |
Constructor. | |
~RawDecodingError () noexcept override=default | |
destructor | |
const char * | what () const noexcept override |
Providing error message of the exception. | |
ErrorType_t | getErrorType () const |
Get the type identifier of the error handled with this exception. | |
Error handling of the raw reader.
The following error types are defined:
Definition at line 30 of file RawDecodingError.h.
|
strong |
Codes for different error types.
Enumerator | |
---|---|
PAGE_NOTFOUND | Page was not found (page index outside range) |
HEADER_DECODING | Header cannot be decoded (format incorrect) |
PAYLOAD_DECODING | Payload cannot be decoded (format incorrect) |
HEADER_INVALID | Header in memory not belonging to requested superpage. |
PAYLOAD_INVALID | Payload in memory not belonging to requested superpage. |
Definition at line 35 of file RawDecodingError.h.
|
inline |
Constructor.
errtype | Identifier code of the error type |
Constructing the error with error code. To be called when the exception is thrown.
Definition at line 48 of file RawDecodingError.h.
|
overridedefaultnoexcept |
destructor
|
inline |
Get the type identifier of the error handled with this exception.
Definition at line 76 of file RawDecodingError.h.
|
inlineoverridenoexcept |
Providing error message of the exception.
Definition at line 57 of file RawDecodingError.h.