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
19
#include "
Utilities/OpalException.h
"
20
21
// Class OpalException
22
// ------------------------------------------------------------------------
23
24
OpalException::OpalException
(
const
std::string& meth,
const
std::string& msg)
25
: message(msg), method(meth) {}
26
27
OpalException::OpalException
(
const
OpalException
& rhs) : message(rhs.message), method(rhs.method) {}
28
29
OpalException::~OpalException
() {}
30
31
const
std::string&
OpalException::what
()
const
{
return
message
; }
32
33
const
std::string&
OpalException::where
()
const
{
return
method
; }
OpalException.h
OpalException
Definition
OpalException.h:30
OpalException::method
const std::string method
Definition
OpalException.h:57
OpalException::what
virtual const std::string & what() const
Return the message string for the exception.
Definition
OpalException.cpp:31
OpalException::~OpalException
virtual ~OpalException()
Definition
OpalException.cpp:29
OpalException::where
virtual const std::string & where() const
Return the name of the method or function which detected the exception.
Definition
OpalException.cpp:33
OpalException::OpalException
OpalException()
OpalException::message
const std::string message
Definition
OpalException.h:56
src
Utilities
OpalException.cpp
Generated on Mon Jun 1 2026 10:40:53 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8