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 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 }
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:233
std::string m_message
description: the actual message

◆ ~ExceptionMsg()

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

Definition at line 45 of file ExceptionMsg.cxx.

47 {
49 }
#define RCU_DESTROY_INVARIANT(x)
Definition Assert.h:235

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 }
#define RCU_INVARIANT(x)
Definition Assert.h:201

◆ 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 }
#define RCU_READ_INVARIANT(x)
Definition Assert.h:229

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: