OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
OpalException.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: OpalException.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.1.1.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: OpalException
10// The base class for all OPAL exceptions.
11//
12// ------------------------------------------------------------------------
13//
14// $Date: 2000/03/27 09:33:48 $
15// $Author: Andreas Adelmann $
16//
17// ------------------------------------------------------------------------
18
20
21// Class OpalException
22// ------------------------------------------------------------------------
23
24OpalException::OpalException(const std::string& meth, const std::string& msg)
25 : message(msg), method(meth) {}
26
27OpalException::OpalException(const OpalException& rhs) : message(rhs.message), method(rhs.method) {}
28
30
31const std::string& OpalException::what() const { return message; }
32
33const std::string& OpalException::where() const { return method; }
const std::string method
virtual const std::string & what() const
Return the message string for the exception.
virtual ~OpalException()
virtual const std::string & where() const
Return the name of the method or function which detected the exception.
const std::string message