Project
Loading...
Searching...
No Matches
o2::emcal::EventHandler< CellInputType >::RangeException Class Referencefinal

Exception handling errors due to exceeding the range of triggers handled by the handler. More...

#include <EventHandler.h>

Inherits std::exception.

Public Member Functions

 RangeException (int eventID, int maxEvents)
 Constructor defining the error.
 
 ~RangeException () noexcept final=default
 Destructor.
 
const charwhat () const noexcept final
 Provide error message.
 
int getEventID () const
 Get the ID of the event raising the exception.
 
int getMaxNumberOfEvents () const
 Get the maximum number of events handled by the event handler.
 

Detailed Description

template<class CellInputType>
class o2::emcal::EventHandler< CellInputType >::RangeException

Exception handling errors due to exceeding the range of triggers handled by the handler.

Definition at line 96 of file EventHandler.h.

Constructor & Destructor Documentation

◆ RangeException()

template<class CellInputType >
o2::emcal::EventHandler< CellInputType >::RangeException::RangeException ( int  eventID,
int  maxEvents 
)
inline

Constructor defining the error.

Parameters
eventIDEvent ID responsible for the exception
maxEventsMaximum number of events handled by the handler

Definition at line 102 of file EventHandler.h.

◆ ~RangeException()

template<class CellInputType >
o2::emcal::EventHandler< CellInputType >::RangeException::~RangeException ( )
finaldefaultnoexcept

Destructor.

Member Function Documentation

◆ getEventID()

template<class CellInputType >
int o2::emcal::EventHandler< CellInputType >::RangeException::getEventID ( ) const
inline

Get the ID of the event raising the exception.

Returns
Event ID

Definition at line 119 of file EventHandler.h.

◆ getMaxNumberOfEvents()

template<class CellInputType >
int o2::emcal::EventHandler< CellInputType >::RangeException::getMaxNumberOfEvents ( ) const
inline

Get the maximum number of events handled by the event handler.

Returns
Max. number of event

Definition at line 123 of file EventHandler.h.

◆ what()

template<class CellInputType >
const char * o2::emcal::EventHandler< CellInputType >::RangeException::what ( ) const
inlinefinalnoexcept

Provide error message.

Returns
Error message connected to this exception

Definition at line 115 of file EventHandler.h.


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