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 addAdditionalInfo (std::string const &info)
 
void addAdditionalInfo (char const *info)
 
void addContext (std::string const &context)
 
void addContext (char const *context)
 
std::list< std::string > const & additionalInfo () const
 
bool alreadyPrinted () const
 
void append (Exception const &another)
 
void append (std::string const &more_information)
 
void append (char const *more_information)
 
std::string const & category () const
 
void clearAdditionalInfo ()
 
void clearContext ()
 
void clearMessage ()
 
std::list< std::string > const & context () const
 
 Exception (std::string const &aCategory)
 
 Exception (char const *aCategory)
 
 Exception (std::string const &aCategory, std::string const &message)
 
 Exception (char const *aCategory, std::string const &message)
 
 Exception (std::string const &aCategory, char const *message)
 
 Exception (char const *aCategory, char const *message)
 
 Exception (std::string const &aCategory, std::string const &message, Exception const &another)
 
 Exception (Exception const &other)
 
std::list< std::string > history () const
 
std::string message () const
 
Exceptionoperator= (Exception const &other)
 
void raise ()
 
int returnCode () const
 
void setAdditionalInfo (std::list< std::string > const &info)
 
void setAlreadyPrinted (bool value)
 
void setContext (std::list< std::string > const &context)
 
void swap (Exception &other)
 
virtual ~Exception () throw ()
 

Private Attributes

std::string message
 

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() const
Definition: Exception.cc:187
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 cms::Exception::message().

44 { return message.c_str();}
std::string message() const
Definition: Exception.cc:187

Member Data Documentation

std::string BaseGenexception::message
private

Definition at line 49 of file CMSexception.h.