ATLAS Offline Software
Loading...
Searching...
No Matches
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 81 of file SealSharedLib.cxx.

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

◆ ~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 101 of file SealSharedLib.cxx.

102{
103 return m_message.c_str();
104}

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: