OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
ClassicException.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: ClassicException.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.1.1.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: ClassicException
10// The base class for all CLASSIC exceptions.
11//
12// ------------------------------------------------------------------------
13// Class category: Utilities
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:32:37 $
17// $Author: fci $
18//
19// ------------------------------------------------------------------------
20
22
23
24// Class ClassicException
25// ------------------------------------------------------------------------
26
28(const std::string &meth, const std::string &msg):
29 message(msg), method(meth)
30{}
31
32
34 message(rhs.message), method(rhs.method)
35{}
36
39{}
40
41
42const std::string &ClassicException::what() const {
43 return message;
44}
45
46
47const std::string &ClassicException::where() const {
48 return method;
49}
The abstract base class for all exceptions in CLASSIC.
virtual const std::string & what() const
Return the message string for the exception.
virtual ~ClassicException()
virtual const std::string & where() const
Return the name of the method or function which detected the exception.
const std::string method
const std::string message