OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
IpplException.h
Go to the documentation of this file.
1#ifndef __IPPLEXCEPTION_H__
2#define __IPPLEXCEPTION_H__
3
4#include <string>
5
7public:
8 IpplException(const std::string& meth, const std::string& descr) {
9 descr_ = descr;
10 meth_ = meth;
11 }
12
13 virtual const char* what() const throw() { return descr_.c_str(); }
14
15 virtual const std::string& where() const { return meth_; }
16
17private:
18 std::string descr_;
19 std::string meth_;
20};
21
22#endif
std::string meth_
Definition: IpplException.h:19
virtual const char * what() const
Definition: IpplException.h:13
virtual const std::string & where() const
Definition: IpplException.h:15
std::string descr_
Definition: IpplException.h:18
IpplException(const std::string &meth, const std::string &descr)
Definition: IpplException.h:8