CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
BaseGenexception Class Reference

#include <CMSexception.h>

Inheritance diagram for BaseGenexception:
CMSexception cms::Exception Genexception Capri::Error GenTerminate Capri::Fatal Capri::Severe Capri::Warning

Public Member Functions

 BaseGenexception () throw ()
 
 BaseGenexception (const std::string &mess) throw ()
 
virtual cms::Exceptionclone (void) const
 
virtual void rethrow (void)
 
virtual const char * what () const throw ()
 
virtual ~BaseGenexception () throw ()
 
- Public Member Functions inherited from CMSexception
 CMSexception () throw ()
 
virtual std::string explainSelf (void) const
 
virtual ~CMSexception () throw ()
 
- Public Member Functions inherited from cms::Exception
void append (Exception const &another)
 
void append (std::string const &more_information)
 
void append (char const *more_information)
 
std::string category () const
 
 Exception (Category const &category)
 
 Exception (Category const &category, std::string const &message)
 
 Exception (Category const &category, std::string const &message, Exception const &another)
 
 Exception (Exception const &other)
 
CategoryList const & history () const
 
void raise ()
 
std::string rootCause () const
 
virtual ~Exception () throw ()
 

Private Attributes

std::string message
 

Additional Inherited Members

- Public Types inherited from cms::Exception
typedef std::string Category
 
typedef std::list< CategoryCategoryList
 

Detailed Description

base generic exception

Definition at line 39 of file CMSexception.h.

Constructor & Destructor Documentation

BaseGenexception::BaseGenexception ( )
throw (
)

Definition at line 47 of file CMSexception.cc.

Referenced by clone().

47 {}
BaseGenexception::BaseGenexception ( const std::string &  mess)
throw (
)

Definition at line 50 of file CMSexception.cc.

50  :
51  message(mess) {}
std::string message
Definition: CMSexception.h:49
BaseGenexception::~BaseGenexception ( )
throw (
)
virtual

Definition at line 53 of file CMSexception.cc.

53  {
54  /* cout << "deleting a BaseGenexception " << message << " at " << this << endl; */
55 }

Member Function Documentation

virtual cms::Exception* BaseGenexception::clone ( void  ) const
inlinevirtual

Reimplemented from cms::Exception.

Reimplemented in Genexception.

Definition at line 45 of file CMSexception.h.

References BaseGenexception().

45 { return new BaseGenexception(*this);}
virtual void BaseGenexception::rethrow ( void  )
inlinevirtual

Reimplemented from cms::Exception.

Reimplemented in Genexception.

Definition at line 46 of file CMSexception.h.

46 { throw *this;}
virtual const char* BaseGenexception::what ( ) const
throw (
)
inlinevirtual

Implements CMSexception.

Definition at line 44 of file CMSexception.h.

References message.

44 { return message.c_str();}
std::string message
Definition: CMSexception.h:49

Member Data Documentation

std::string BaseGenexception::message
private

Definition at line 49 of file CMSexception.h.

Referenced by what().