![]() |
Project
|
Error handling of the ALTRO Decoder. More...
#include <AltroDecoder.h>
Inherits std::exception.
Public Types | |
enum class | ErrorType_t { RCU_TRAILER_ERROR , RCU_VERSION_ERROR , RCU_TRAILER_SIZE_ERROR , ALTRO_BUNCH_HEADER_ERROR , ALTRO_BUNCH_LENGTH_ERROR , ALTRO_PAYLOAD_ERROR , ALTRO_MAPPING_ERROR , CHANNEL_ERROR } |
Error codes connected with the ALTRO decoding. More... | |
Public Member Functions | |
AltroDecoderError (ErrorType_t errtype, const std::string_view message) | |
Constructor. | |
~AltroDecoderError () noexcept override=default | |
Destructor. | |
const char * | what () const noexcept override |
Access to error message cnnected to the error. | |
const ErrorType_t | getErrorType () const noexcept |
Access to the error type connected to the erro. | |
Static Public Member Functions | |
static int | errorTypeToInt (ErrorType_t errortype) |
convert the error type from symoblic constant into int | |
static ErrorType_t | intToErrorType (int errornumber) |
convert the error from number into a type (symbolic constant) | |
static constexpr int | getNumberOfErrorTypes () noexcept |
Get the number of error types handled by the AltroDecoderError. | |
static const char * | getErrorTypeName (ErrorType_t errortype) |
Get the name connected to the error type. | |
static const char * | getErrorTypeName (unsigned int errortype) |
Get the name connected to the error type. | |
static const char * | getErrorTypeTitle (ErrorType_t errortype) |
Get the title connected to the error type. | |
static const char * | getErrorTypeTitle (unsigned int errortype) |
Get the title connected to the error type. | |
static const char * | getErrorTypeDescription (ErrorType_t errortype) |
Get the description connected to the error type. | |
static const char * | getErrorTypeDescription (unsigned int errortype) |
Get the description connected to the error type. | |
Error handling of the ALTRO Decoder.
Definition at line 33 of file AltroDecoder.h.
|
strong |
Error codes connected with the ALTRO decoding.
Definition at line 38 of file AltroDecoder.h.
|
inline |
Constructor.
Defining error code and error message. To be called when the exception is thrown
errtype | Type of the error |
message | Error message related to the error |
Definition at line 56 of file AltroDecoder.h.
|
overridedefaultnoexcept |
Destructor.
|
static |
convert the error type from symoblic constant into int
Definition at line 207 of file AltroDecoder.cxx.
|
inlinenoexcept |
Access to the error type connected to the erro.
Definition at line 79 of file AltroDecoder.h.
|
static |
Get the description connected to the error type.
A detailed description i.e. used for error message on the stdout is produced.
errortype | Error type raising the exception (symbolic representation) |
Definition at line 329 of file AltroDecoder.cxx.
|
inlinestatic |
Get the description connected to the error type.
A detailed description i.e. used for error message on the stdout is produced.
errortype | Error type raising the exception (numeric representation) |
Definition at line 139 of file AltroDecoder.h.
|
static |
Get the name connected to the error type.
A single word descriptor i.e. used for object names is produced.
errortype | Error type raising the exception (symbolic representation) |
Definition at line 283 of file AltroDecoder.cxx.
|
inlinestatic |
Get the name connected to the error type.
A single word descriptor i.e. used for object names is produced.
errortype | Error type raising the exception (numeric representation) |
Definition at line 97 of file AltroDecoder.h.
|
static |
Get the title connected to the error type.
A short description i.e. used for bin labels or histogam titles is produced.
errortype | Error type raising the exception (symbolic representation) |
Definition at line 306 of file AltroDecoder.cxx.
|
inlinestatic |
Get the title connected to the error type.
A short description i.e. used for bin labels or histogam titles is produced.
errortype | Error type raising the exception (numeric representation) |
Definition at line 118 of file AltroDecoder.h.
|
inlinestaticconstexprnoexcept |
Get the number of error types handled by the AltroDecoderError.
Definition at line 75 of file AltroDecoder.h.
|
static |
convert the error from number into a type (symbolic constant)
Definition at line 245 of file AltroDecoder.cxx.
|
inlineoverridenoexcept |
Access to error message cnnected to the error.
Definition at line 63 of file AltroDecoder.h.