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

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 charwhat () const noexcept override
 Providing error message of the exception.
 
ErrorType_t getErrorType () const
 Get the type identifier of the error handled with this exception.
 

Detailed Description

Error handling of the raw reader.

The following error types are defined:

  • Page not found
  • Raw header decoding error
  • Payload decoding error

Definition at line 30 of file RawDecodingError.h.

Member Enumeration Documentation

◆ ErrorType_t

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.

Constructor & Destructor Documentation

◆ RawDecodingError()

o2::phos::RawDecodingError::RawDecodingError ( ErrorType_t  errtype)
inline

Constructor.

Parameters
errtypeIdentifier 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.

◆ ~RawDecodingError()

o2::phos::RawDecodingError::~RawDecodingError ( )
overridedefaultnoexcept

destructor

Member Function Documentation

◆ getErrorType()

ErrorType_t o2::phos::RawDecodingError::getErrorType ( ) const
inline

Get the type identifier of the error handled with this exception.

Returns
Error code of the exception

Definition at line 76 of file RawDecodingError.h.

◆ what()

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

Providing error message of the exception.

Returns
Error message of the exception

Definition at line 57 of file RawDecodingError.h.


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