OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
IpplException.h
Go to the documentation of this file.
1#ifndef __IPPLEXCEPTION_H__
2#define __IPPLEXCEPTION_H__
3
4#include <string>
5
7
8public:
9
10 IpplException(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 std::string& where() const {
20 return meth_;
21 }
22
23private:
24
25 std::string descr_;
26 std::string meth_;
27
28};
29
30#endif
std::string meth_
virtual const char * what() const
virtual const std::string & where() const
std::string descr_
IpplException(const std::string &meth, const std::string &descr)