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// ------------------------------------------------------------------------
31public:
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
46 virtual const std::string& what() const;
47
49 virtual const std::string& where() const;
50
51private:
52 // Not implemented.
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
const std::string method
virtual const std::string & what() const
Return the message string for the exception.
virtual ~OpalException()
virtual const std::string & where() const
Return the name of the method or function which detected the exception.
const std::string message