CMS 3D CMS Logo

List of all members | Public Member Functions
cond::persistency::Exception Class Reference

Base exception class for the object to relational access. More...

#include <Exception.h>

Inheritance diagram for cond::persistency::Exception:
cms::Exception cond::UnregisteredRecordException cond::UtilitiesError l1t::DataAlreadyPresentException l1t::DataInvalidException

Public Member Functions

 Exception (const std::string &message)
 Constructor. More...
 
 Exception (const std::string &message, const std::string &methodName)
 Constructor. More...
 
 ~Exception () override throw ()
 Destructor. More...
 
- Public Member Functions inherited from cms::Exception
void addAdditionalInfo (char const *info)
 
void addAdditionalInfo (std::string const &info)
 
void addContext (char const *context)
 
void addContext (std::string const &context)
 
std::list< std::string > const & additionalInfo () const
 
bool alreadyPrinted () const
 
void append (char const *more_information)
 
void append (Exception const &another)
 
void append (std::string const &more_information)
 
std::string const & category () const
 
void clearAdditionalInfo ()
 
void clearContext ()
 
void clearMessage ()
 
virtual Exceptionclone () const
 
std::list< std::string > const & context () const
 
 Exception (char const *aCategory)
 
 Exception (char const *aCategory, char const *message)
 
 Exception (char const *aCategory, std::string const &message)
 
 Exception (Exception const &other)
 
 Exception (std::string const &aCategory)
 
 Exception (std::string const &aCategory, char const *message)
 
 Exception (std::string const &aCategory, std::string const &message)
 
 Exception (std::string const &aCategory, std::string const &message, Exception const &another)
 
virtual std::string explainSelf () const
 
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)
 
char const * what () const noexcept override
 
 ~Exception () noexcept override
 

Detailed Description

Base exception class for the object to relational access.

Definition at line 11 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

Exception::Exception ( const std::string &  message)
explicit

Constructor.

Definition at line 7 of file Exception.cc.

7 : cms::Exception("ConditionDatabase", message) {}

◆ Exception() [2/2]

Exception::Exception ( const std::string &  message,
const std::string &  methodName 
)

Constructor.

Definition at line 9 of file Exception.cc.

10  : cms::Exception("ConditionDatabase", message + " from " + methodName) {}

◆ ~Exception()

cond::persistency::Exception::~Exception ( )
throw (
)
inlineoverride

Destructor.

Definition at line 18 of file Exception.h.

18 {}
cms::Exception::message
std::string message() const
Definition: Exception.cc:145
Exception
Definition: hltDiff.cc:246