CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
zmex::ZMexception Class Reference

#include <CLHEP/Exceptions/ZMexception.h>

Public Member Functions

 ZMexception (const std::string &mesg, const ZMexSeverity howBad=ZMexSEVERITYenumLAST, int icount=ZMexception::_classInfo.nextCount())
 ZMexception (const std::ostringstream &msg, const ZMexSeverity howBad=ZMexSEVERITYenumLAST, int icount=ZMexception::_classInfo.nextCount())
virtual ~ZMexception ()
void location (int line, const std::string file) const
ZMexSeverity severity () const
int line () const
std::string fileName () const
std::string message () const
int count () const
std::string handlerUsed () const
bool wasThrown () const
void handlerUsed (const std::string handlerName) const
void wasThrown (bool b) const
virtual std::string logMessage (const std::string optText="") const
virtual std::string facility () const
virtual std::string name () const
bool OKtoLog () const
virtual ZMexceptionclone () const
virtual zmex::ZMexClassInfoclassInfo () const
virtual ZMexAction handleMe () const
virtual ZMexLogResult logMe () const
virtual bool isDerivedFrom (const std::string, const std::string) const
virtual void logObject () const

Public Attributes

 ZMexClassStaticMethods

Protected Attributes

const std::string message_
int line_
std::string sourceFileName_
const ZMexSeverity mySeverity_
const int myCount_
std::string handlerUsed_
bool wasThrown_

Static Protected Attributes

static ZMexClassInfo _classInfo

Detailed Description

Definition at line 163 of file ZMexception.h.

Constructor & Destructor Documentation

◆ ZMexception() [1/2]

zmex::ZMexception::ZMexception ( const std::string & mesg,
const ZMexSeverity howBad = ZMexSEVERITYenumLAST,
int icount = ZMexception::_classInfo.nextCount() )
inline

◆ ZMexception() [2/2]

zmex::ZMexception::ZMexception ( const std::ostringstream & msg,
const ZMexSeverity howBad = ZMexSEVERITYenumLAST,
int icount = ZMexception::_classInfo.nextCount() )
explicit

◆ ~ZMexception()

virtual zmex::ZMexception::~ZMexception ( )
inlinevirtual

Definition at line 216 of file ZMexception.h.

Member Function Documentation

◆ classInfo()

virtual zmex::ZMexClassInfo & zmex::ZMexception::classInfo ( ) const
inlinevirtual

Definition at line 443 of file ZMexception.h.

References _classInfo.

Referenced by handleMe(), logMe(), and OKtoLog().

◆ clone()

virtual ZMexception * zmex::ZMexception::clone ( ) const
inlinevirtual

Definition at line 439 of file ZMexception.h.

References ZMexception().

◆ count()

int zmex::ZMexception::count ( ) const
inline

Definition at line 73 of file ZMexception.icc.

References myCount_.

◆ facility()

virtual std::string zmex::ZMexception::facility ( ) const
virtual

◆ fileName()

std::string zmex::ZMexception::fileName ( ) const
inline

Definition at line 145 of file ZMexception.icc.

References sourceFileName_.

◆ handleMe()

virtual ZMexAction zmex::ZMexception::handleMe ( ) const
inlinevirtual

◆ handlerUsed() [1/2]

std::string zmex::ZMexception::handlerUsed ( ) const
inline

Definition at line 101 of file ZMexception.icc.

References handlerUsed_.

◆ handlerUsed() [2/2]

void zmex::ZMexception::handlerUsed ( const std::string handlerName) const
inline

Definition at line 105 of file ZMexception.icc.

References handlerUsed_, and ZMexception().

◆ isDerivedFrom()

virtual bool zmex::ZMexception::isDerivedFrom ( const std::string ,
const std::string  ) const
inlinevirtual

Definition at line 457 of file ZMexception.h.

◆ line()

int zmex::ZMexception::line ( ) const
inline

Definition at line 149 of file ZMexception.icc.

References line_.

◆ location()

void zmex::ZMexception::location ( int line,
const std::string file ) const
inline

Definition at line 134 of file ZMexception.icc.

References line_, sourceFileName_, and ZMexception().

◆ logMe()

virtual ZMexLogResult zmex::ZMexception::logMe ( ) const
inlinevirtual

◆ logMessage()

virtual std::string zmex::ZMexception::logMessage ( const std::string optText = "") const
virtual

◆ logObject()

virtual void zmex::ZMexception::logObject ( ) const
inlinevirtual

Definition at line 464 of file ZMexception.h.

◆ message()

std::string zmex::ZMexception::message ( ) const
inline

Definition at line 66 of file ZMexception.icc.

References message_.

◆ name()

virtual std::string zmex::ZMexception::name ( ) const
virtual

◆ OKtoLog()

bool zmex::ZMexception::OKtoLog ( ) const
inline

Definition at line 153 of file ZMexception.icc.

References classInfo(), and zmex::ZMexClassInfo::OKtoLog().

◆ severity()

ZMexSeverity zmex::ZMexception::severity ( ) const
inline

Definition at line 119 of file ZMexception.icc.

References mySeverity_.

Referenced by ZMexception().

◆ wasThrown() [1/2]

bool zmex::ZMexception::wasThrown ( ) const
inline

Definition at line 80 of file ZMexception.icc.

References wasThrown_.

◆ wasThrown() [2/2]

void zmex::ZMexception::wasThrown ( bool b) const
inline

Definition at line 84 of file ZMexception.icc.

References wasThrown_, and ZMexception().

Member Data Documentation

◆ _classInfo

ZMexClassInfo zmex::ZMexception::_classInfo
staticprotected

Definition at line 166 of file ZMexception.h.

Referenced by classInfo(), ZMexception(), and ZMexception().

◆ handlerUsed_

std::string zmex::ZMexception::handlerUsed_
mutableprotected

Definition at line 190 of file ZMexception.h.

Referenced by handlerUsed(), and handlerUsed().

◆ line_

int zmex::ZMexception::line_
mutableprotected

Definition at line 177 of file ZMexception.h.

Referenced by line(), location(), and ZMexception().

◆ message_

const std::string zmex::ZMexception::message_
protected

Definition at line 169 of file ZMexception.h.

Referenced by message(), and ZMexception().

◆ myCount_

const int zmex::ZMexception::myCount_
protected

Definition at line 186 of file ZMexception.h.

Referenced by count(), and ZMexception().

◆ mySeverity_

const ZMexSeverity zmex::ZMexception::mySeverity_
protected

Definition at line 185 of file ZMexception.h.

Referenced by severity(), and ZMexception().

◆ sourceFileName_

std::string zmex::ZMexception::sourceFileName_
mutableprotected

Definition at line 181 of file ZMexception.h.

Referenced by fileName(), location(), and ZMexception().

◆ wasThrown_

bool zmex::ZMexception::wasThrown_
mutableprotected

Definition at line 194 of file ZMexception.h.

Referenced by wasThrown(), wasThrown(), and ZMexception().

◆ ZMexClassStaticMethods

zmex::ZMexception::ZMexClassStaticMethods

Definition at line 435 of file ZMexception.h.


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