OPAL (Object Oriented Parallel Accelerator Library)
2024.2
OPAL
src
Classic
Utilities
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
21
#include "
Utilities/ClassicException.h
"
22
23
24
// Class ClassicException
25
// ------------------------------------------------------------------------
26
27
ClassicException::ClassicException
28
(
const
std::string &meth,
const
std::string &msg):
29
message(msg), method(meth)
30
{}
31
32
33
ClassicException::ClassicException
(
const
ClassicException
&rhs):
34
message(rhs.message), method(rhs.method)
35
{}
36
37
38
ClassicException::~ClassicException
()
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
}
ClassicException.h
ClassicException
The abstract base class for all exceptions in CLASSIC.
Definition
ClassicException.h:29
ClassicException::what
virtual const std::string & what() const
Return the message string for the exception.
Definition
ClassicException.cpp:42
ClassicException::~ClassicException
virtual ~ClassicException()
Definition
ClassicException.cpp:38
ClassicException::ClassicException
ClassicException()
ClassicException::where
virtual const std::string & where() const
Return the name of the method or function which detected the exception.
Definition
ClassicException.cpp:47
ClassicException::method
const std::string method
Definition
ClassicException.h:61
ClassicException::message
const std::string message
Definition
ClassicException.h:60
Generated on Tue Apr 14 2026 07:18:45 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.8