ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
RCU::ExceptionMsg Class Reference

#include <ExceptionMsg.h>

Inheritance diagram for RCU::ExceptionMsg:
Collaboration diagram for RCU::ExceptionMsg:

Public Member Functions

void testInvariant () const
 
 ExceptionMsg (const char *const val_file, const unsigned val_line, const std::string &val_message)
 
virtual ~ExceptionMsg () throw ()
 
virtual const char * what () const throw ()
 

Private Attributes

std::string m_message
 description: the actual message More...
 

Detailed Description

Definition at line 28 of file ExceptionMsg.h.

Constructor & Destructor Documentation

◆ ExceptionMsg()

RCU::ExceptionMsg::ExceptionMsg ( const char *const  val_file,
const unsigned  val_line,
const std::string &  val_message 
)

Definition at line 35 of file ExceptionMsg.cxx.

38  : m_message (val_message)
39  {
40  RCU_NEW_INVARIANT (this);
41  }

◆ ~ExceptionMsg()

RCU::ExceptionMsg::~ExceptionMsg ( )
throw (
)
virtual

Definition at line 45 of file ExceptionMsg.cxx.

47  {
48  RCU_DESTROY_INVARIANT (this);
49  }

Member Function Documentation

◆ testInvariant()

void RCU::ExceptionMsg::testInvariant ( ) const

Definition at line 26 of file ExceptionMsg.cxx.

28  {
29  //RCU_INVARIANT (this != 0);
30  RCU_INVARIANT (!m_message.empty());
31  }

◆ what()

const char * RCU::ExceptionMsg::what ( ) const
throw (
)
virtual

Definition at line 53 of file ExceptionMsg.cxx.

55  {
56  RCU_READ_INVARIANT (this);
57  return m_message.c_str();
58  }

Member Data Documentation

◆ m_message

std::string RCU::ExceptionMsg::m_message
private

description: the actual message

Definition at line 75 of file ExceptionMsg.h.


The documentation for this class was generated from the following files:
RCU_INVARIANT
#define RCU_INVARIANT(x)
Definition: Assert.h:201
RCU::ExceptionMsg::m_message
std::string m_message
description: the actual message
Definition: ExceptionMsg.h:75
RCU_DESTROY_INVARIANT
#define RCU_DESTROY_INVARIANT(x)
Definition: Assert.h:235
RCU_READ_INVARIANT
#define RCU_READ_INVARIANT(x)
Definition: Assert.h:229
RCU_NEW_INVARIANT
#define RCU_NEW_INVARIANT(x)
Definition: Assert.h:233