Project
Loading...
Searching...
No Matches
o2::emcal::RCUTrailer::Error Class Reference

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 charwhat () const noexcept override
 Access to the error message.
 
ErrorType_t getErrorType () const noexcept
 Access to error code.
 

Detailed Description

Error handling of the RCU trailer.

Definition at line 79 of file RCUTrailer.h.

Member Enumeration Documentation

◆ ErrorType_t

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.

Constructor & Destructor Documentation

◆ Error()

o2::emcal::RCUTrailer::Error::Error ( ErrorType_t  errtype,
const char message 
)
inline

Constructor.

Parameters
errtypeCode of the error type
messagecorresponding 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.

◆ ~Error()

o2::emcal::RCUTrailer::Error::~Error ( )
overridedefaultnoexcept

Destructor.

Member Function Documentation

◆ getErrorType()

ErrorType_t o2::emcal::RCUTrailer::Error::getErrorType ( ) const
inlinenoexcept

Access to error code.

Returns
Error code of the exception type

Definition at line 108 of file RCUTrailer.h.

◆ what()

const char * o2::emcal::RCUTrailer::Error::what ( ) const
inlineoverridenoexcept

Access to the error message.

Returns
Error message related to the exception type

Definition at line 104 of file RCUTrailer.h.


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