OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
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
22
23
24// Class OpalException
25// ------------------------------------------------------------------------
27
29
30public:
31
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
43 virtual ~OpalException();
44
47
50
51private:
52
53 // Not implemented.
55};
56
57#endif // OPAL_OpalException_HH
The abstract base class for all exceptions in CLASSIC.
virtual const std::string & what() const
Return the message string for the exception.
virtual const std::string & where() const
Return the name of the method or function which detected the exception.
The base class for all OPAL exceptions.
Definition: OpalException.h:28
virtual ~OpalException()