CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Exception.h
Go to the documentation of this file.
1 #ifdef COND_EXP_WARNING
2 #warning please ignore previous warning
3 #endif
4 #ifndef COND_EXCEPTION_H
5 #define COND_EXCEPTION_H
7 #include <string>
8 namespace cond{
9  class Exception : public cms::Exception{
10  public:
11  explicit Exception( const std::string& message );
12  virtual ~Exception() throw();
13  };
15  public:
16  noDataForRequiredTimeException(const std::string& from,
17  const std::string& rcd,
18  const std::string& current);
19  virtual ~noDataForRequiredTimeException() throw();
20  };
21  class RefException : public Exception{
22  public:
23  RefException(const std::string& from,
24  const std::string& msg);
25  virtual ~RefException() throw(){}
26  };
28  public:
29  TransactionException(const std::string& from,
30  const std::string& msg);
32  };
33 
34  void throwException( std::string const& message, std::string const& methodName );
35 }
36 #endif
std::string message() const
Definition: Exception.cc:187
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
virtual ~RefException()
Definition: Exception.h:25
virtual ~TransactionException()
Definition: Exception.h:31
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