ATLAS Offline Software
Loading...
Searching...
No Matches
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

Detailed Description

Definition at line 23 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 32 of file ExceptionMsg.cxx.

35 : m_message (val_message)
36 {
37 RCU_NEW_INVARIANT (this);
38 }
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:228
std::string m_message
description: the actual message

◆ ~ExceptionMsg()

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

Definition at line 42 of file ExceptionMsg.cxx.

44 {
46 }
#define RCU_DESTROY_INVARIANT(x)
Definition Assert.h:230

Member Function Documentation

◆ testInvariant()

void RCU::ExceptionMsg::testInvariant ( ) const

Definition at line 23 of file ExceptionMsg.cxx.

25 {
26 //RCU_INVARIANT (this != 0);
27 RCU_INVARIANT (!m_message.empty());
28 }
#define RCU_INVARIANT(x)
Definition Assert.h:196

◆ what()

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

Definition at line 50 of file ExceptionMsg.cxx.

52 {
53 RCU_READ_INVARIANT (this);
54 return m_message.c_str();
55 }
#define RCU_READ_INVARIANT(x)
Definition Assert.h:224

Member Data Documentation

◆ m_message

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

description: the actual message

Definition at line 70 of file ExceptionMsg.h.


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