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

Error in a shared library operation. More...

#include <SealSharedLib.h>

Inheritance diagram for Athena::SharedLibraryError:
Collaboration diagram for Athena::SharedLibraryError:

Public Member Functions

 SharedLibraryError (const std::string &context, const std::string &cause)
 
virtual ~SharedLibraryError () throw ()
 
virtual const char * what () const throw ()
 

Private Attributes

std::string m_message
 

Detailed Description

Error in a shared library operation.

Definition at line 143 of file SealSharedLib.h.

Constructor & Destructor Documentation

◆ SharedLibraryError()

Athena::SharedLibraryError::SharedLibraryError ( const std::string &  context,
const std::string &  cause 
)

Definition at line 83 of file SealSharedLib.cxx.

85  : m_message ("Shared library operation")
86 {
87  if (! context.empty ())
88  {
89  m_message += " ";
90  m_message += context;
91  }
92 
93  m_message += " failed";
94 
95  if (! cause.empty ())
96  {
97  m_message += " because: ";
98  m_message += cause;
99  }
100 }

◆ ~SharedLibraryError()

virtual Athena::SharedLibraryError::~SharedLibraryError ( )
throw (
)
inlinevirtual

Definition at line 147 of file SealSharedLib.h.

147 {}

Member Function Documentation

◆ what()

const char * Athena::SharedLibraryError::what ( ) const
throw (
)
virtual

Definition at line 103 of file SealSharedLib.cxx.

104 {
105  return m_message.c_str();
106 }

Member Data Documentation

◆ m_message

std::string Athena::SharedLibraryError::m_message
private

Definition at line 152 of file SealSharedLib.h.


The documentation for this class was generated from the following files:
Athena::SharedLibraryError::m_message
std::string m_message
Definition: SealSharedLib.h:152