ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ZdcID_Exception Class Reference

Exception class for Zdc Identifiers. More...

#include <ZdcID_Exception.h>

Collaboration diagram for ZdcID_Exception:

Public Member Functions

 ZdcID_Exception ()
 default constructor More...
 
 ZdcID_Exception (const std::string &l_message, int l_code)
 constructor to be used More...
 
void message (const std::string &l_message)
 set error message More...
 
virtual std::string message () const
 return error message
More...
 
void code (int l_code)
 set error code number More...
 
virtual int code () const
 return error code More...
 
virtual ~ZdcID_Exception ()
 destructor More...
 

Private Attributes

std::string m_message
 error message More...
 
int m_code
 error code More...
 

Detailed Description

Exception class for Zdc Identifiers.

Author
Alexander Solodkov

Definition at line 16 of file ZdcID_Exception.h.

Constructor & Destructor Documentation

◆ ZdcID_Exception() [1/2]

ZdcID_Exception::ZdcID_Exception ( )
inline

default constructor

Definition at line 22 of file ZdcID_Exception.h.

22 : m_message("No error message") , m_code( 999 ) { }

◆ ZdcID_Exception() [2/2]

ZdcID_Exception::ZdcID_Exception ( const std::string &  l_message,
int  l_code 
)
inline

constructor to be used

Definition at line 27 of file ZdcID_Exception.h.

27 : m_message ( l_message ) , m_code ( l_code ) { }

◆ ~ZdcID_Exception()

virtual ZdcID_Exception::~ZdcID_Exception ( )
inlinevirtual

destructor

Definition at line 66 of file ZdcID_Exception.h.

66 {}

Member Function Documentation

◆ code() [1/2]

virtual int ZdcID_Exception::code ( ) const
inlinevirtual

return error code

error codes : 0 : no error 1 : Logical ID is out of range 2 : Hardware ID is out of range 3 : No PMT for this logical ID (invalid logical ID) 4 : No PMT for this channel (not connected) 9 : ID compactification Error 11 : id is not an ZdcCal logical identifier 12 : id is not an ZdcCal hardware identifier 19 : no IDCompactor available ( null pointer ) 999 : undefined error

Definition at line 59 of file ZdcID_Exception.h.

59 { return m_code;}

◆ code() [2/2]

void ZdcID_Exception::code ( int  l_code)
inline

set error code number

Definition at line 42 of file ZdcID_Exception.h.

42 { m_code = l_code ;}

◆ message() [1/2]

virtual std::string ZdcID_Exception::message ( ) const
inlinevirtual

return error message

Definition at line 37 of file ZdcID_Exception.h.

37 { return m_message;}

◆ message() [2/2]

void ZdcID_Exception::message ( const std::string &  l_message)
inline

set error message

Definition at line 32 of file ZdcID_Exception.h.

32 { m_message = l_message ;}

Member Data Documentation

◆ m_code

int ZdcID_Exception::m_code
private

error code

Definition at line 78 of file ZdcID_Exception.h.

◆ m_message

std::string ZdcID_Exception::m_message
private

error message

Definition at line 73 of file ZdcID_Exception.h.


The documentation for this class was generated from the following file:
ZdcID_Exception::m_code
int m_code
error code
Definition: ZdcID_Exception.h:78
ZdcID_Exception::m_message
std::string m_message
error message
Definition: ZdcID_Exception.h:73