Project
Loading...
Searching...
No Matches
o2::phos::AltroDecoderError Class Reference

Error handling of the ALTRO Decoder. More...

#include <AltroDecoder.h>

Inherits std::exception.

Public Types

enum  ErrorType_t {
  kOK , 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
}
 

Public Member Functions

 AltroDecoderError (ErrorType_t errtype, const char *message)
 Constructor.
 
 ~AltroDecoderError () noexcept override=default
 Destructor.
 
const charwhat () const noexcept override
 Access to error message cnnected to the error.
 
ErrorType_t getErrorType () const noexcept
 Access to the error type connected to the error.
 

Detailed Description

Error handling of the ALTRO Decoder.

Definition at line 33 of file AltroDecoder.h.

Member Enumeration Documentation

◆ ErrorType_t

Enumerator
kOK 

NoError.

RCU_TRAILER_ERROR 

RCU trailer cannot be decoded or invalid.

RCU_VERSION_ERROR 

RCU trailer version not matching with the version in the raw header.

RCU_TRAILER_SIZE_ERROR 

RCU trailer size length.

ALTRO_BUNCH_HEADER_ERROR 

ALTRO bunch header cannot be decoded or is invalid.

ALTRO_BUNCH_LENGTH_ERROR 

ALTRO bunch has incorrect length.

ALTRO_PAYLOAD_ERROR 

ALTRO payload cannot be decoded.

ALTRO_MAPPING_ERROR 

Incorrect ALTRO channel mapping.

CHANNEL_ERROR 

Channels not initialized.

Definition at line 36 of file AltroDecoder.h.

Constructor & Destructor Documentation

◆ AltroDecoderError()

o2::phos::AltroDecoderError::AltroDecoderError ( ErrorType_t  errtype,
const char message 
)
inline

Constructor.

Defining error code and error message. To be called when the exception is thrown

Definition at line 52 of file AltroDecoder.h.

◆ ~AltroDecoderError()

o2::phos::AltroDecoderError::~AltroDecoderError ( )
overridedefaultnoexcept

Destructor.

Member Function Documentation

◆ getErrorType()

ErrorType_t o2::phos::AltroDecoderError::getErrorType ( ) const
inlinenoexcept

Access to the error type connected to the error.

Returns
Error type

Definition at line 63 of file AltroDecoder.h.

◆ what()

const char * o2::phos::AltroDecoderError::what ( ) const
inlineoverridenoexcept

Access to error message cnnected to the error.

Returns
Error message

Definition at line 59 of file AltroDecoder.h.


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