IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
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_
virtual const char * what() const
virtual const std::string & where() const
std::string descr_
IpplException(const std::string &meth, const std::string &descr)