OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
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 
37 
39 {}
40 
41 
42 const std::string &ClassicException::what() const {
43  return message;
44 }
45 
46 
47 const std::string &ClassicException::where() const {
48  return method;
49 }
const std::string method
The abstract base class for all exceptions in CLASSIC.
virtual const std::string & what() const
Return the message string for the exception.
virtual ~ClassicException()
const std::string message
virtual const std::string & where() const
Return the name of the method or function which detected the exception.