IPPL API Reference
Independent Parallel Particle Layer C++ API
Loading...
Searching...
No Matches
IpplException.h
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
Definition IpplException.h:6