OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
SDDSParserException.h
Go to the documentation of this file.
1 #ifndef __SDDSPARSEREXCEPTION_H__
2 #define __SDDSPARSEREXCEPTION_H__
3 
4 #include <string>
5 
7 
8 public:
9 
10  SDDSParserException(const std::string &meth, const std::string &descr) {
11  descr_ = descr;
12  meth_ = meth;
13  }
14 
15  virtual const char* what() const throw() {
16  return descr_.c_str();
17  }
18 
19  virtual const char* where() const throw() {
20  return meth_.c_str();
21  }
22 
23 private:
24 
25  std::string descr_;
26  std::string meth_;
27 
28 };
29 
30 #endif
virtual const char * where() const
virtual const char * what() const
SDDSParserException(const std::string &meth, const std::string &descr)