CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Exception.cc
Go to the documentation of this file.
2 cond::Exception::Exception( const std::string& message ):cms::Exception("Conditions",message){}
4 
6 const std::string& from, const std::string& rcd, const std::string& current ):
7  cond::Exception(from+": no data available in "+rcd+" at time "+current){}
9 
10 cond::RefException::RefException( const std::string& from, const std::string& msg):
11  cond::Exception(std::string("Error in building cond::Ref ")+from+" "+msg){}
12 
13 cond::TransactionException::TransactionException( const std::string& from, const std::string& msg):
14  cond::Exception(std::string("Transaction Error ")+from+" "+msg){}
15 
16 namespace cond {
17  void throwException( std::string const& message,
18  std::string const& methodName ){
19  throw Exception( methodName + ": " + message );
20  }
21 }
noDataForRequiredTimeException(const std::string &from, const std::string &rcd, const std::string &current)
Definition: Exception.cc:5
RefException(const std::string &from, const std::string &msg)
Definition: Exception.cc:10
static std::string from(" from ")
virtual ~Exception()
Definition: Exception.cc:3
void throwException(std::string const &message, std::string const &methodName)
Definition: Exception.cc:17
TransactionException(const std::string &from, const std::string &msg)
Definition: Exception.cc:13
Exception(const std::string &message)
Definition: Exception.cc:2