OPALX (Object Oriented Parallel Accelerator Library for Exascal)
master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
OpalException.h
Go to the documentation of this file.
1
#ifndef OPAL_OpalException_HH
2
#define OPAL_OpalException_HH
3
4
// ------------------------------------------------------------------------
5
// $RCSfile: OpalException.h,v $
6
// ------------------------------------------------------------------------
7
// $Revision: 1.1.1.1 $
8
// ------------------------------------------------------------------------
9
// Copyright: see Copyright.readme
10
// ------------------------------------------------------------------------
11
//
12
// Class: OpalException
13
//
14
// ------------------------------------------------------------------------
15
//
16
// $Date: 2000/03/27 09:33:48 $
17
// $Author: Andreas Adelmann $
18
//
19
// ------------------------------------------------------------------------
20
21
#include <string>
22
23
// Class OpalException
24
// ------------------------------------------------------------------------
30
class
OpalException
{
31
public
:
33
// Arguments:
34
// [DL]
35
// [DT][b]meth[/b]
36
// [DD]the name of the method or function detecting the exception
37
// [DT][b]msg [/b]
38
// [DD]the message string identifying the exception
39
// [/DL]
40
explicit
OpalException
(
const
std::string& meth,
const
std::string& msg);
41
42
OpalException
(
const
OpalException
&);
43
virtual
~OpalException
();
44
46
virtual
const
std::string&
what
()
const
;
47
49
virtual
const
std::string&
where
()
const
;
50
51
private
:
52
// Not implemented.
53
OpalException
();
54
55
// The method detecting the exception and the message.
56
const
std::string
message
;
57
const
std::string
method
;
58
};
59
60
#endif
// OPAL_OpalException_HH
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.h
Generated on Mon Jun 1 2026 10:40:53 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8