ESScript
Revision_4488
Main Page
Namespaces
Classes
Files
File List
File Members
escript
src
FunctionSpaceException.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2013 by University of Queensland
5
* http://www.uq.edu.au
6
*
7
* Primary Business: Queensland, Australia
8
* Licensed under the Open Software License version 3.0
9
* http://www.opensource.org/licenses/osl-3.0.php
10
*
11
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12
* Development since 2012 by School of Earth Sciences
13
*
14
*****************************************************************************/
15
16
17
#if !defined escript_FunctionSpaceException_20040602_H
18
#define escript_FunctionSpaceException_20040602_H
19
#include "
system_dep.h
"
20
21
#include "esysUtils/EsysException.h"
22
23
namespace
escript
24
{
25
34
class
FunctionSpaceException
:
public
esysUtils::EsysException
35
{
36
37
protected
:
38
39
typedef
EsysException
Parent
;
40
41
public
:
46
ESCRIPT_DLL_API
47
FunctionSpaceException
() :
Parent
() {
updateMessage
();}
52
ESCRIPT_DLL_API
53
FunctionSpaceException
(
const
char
*cstr) :
Parent
(cstr) {
updateMessage
();}
58
ESCRIPT_DLL_API
59
FunctionSpaceException
(
const
std::string &str) :
60
Parent
(str) {
updateMessage
();}
65
ESCRIPT_DLL_API
66
FunctionSpaceException
(
const
FunctionSpaceException
&other) :
Parent
(other)
67
{
68
updateMessage
();
69
}
70
71
ESCRIPT_DLL_API
72
inline
FunctionSpaceException
&
73
operator=
(
const
FunctionSpaceException
&other )
THROW
(
NO_ARG
)
74
{
75
Parent::operator=
(other);
76
updateMessage
();
77
return
*
this
;
78
}
79
80
82
ESCRIPT_DLL_API
83
virtual
~FunctionSpaceException
()
THROW
(
NO_ARG
) {}
88
ESCRIPT_DLL_API
89
virtual
const
std::string &
exceptionName
()
const
;
90
91
private
:
92
93
//
94
// the exception name is immutable and class-wide.
95
// Inheritor note; you need one of these too.
96
// and an overloaded exceptionName() in your .cpp implementation file.
97
static
const
std::string
exceptionNameValue
;
98
};
99
100
}
// end of namespace
101
#endif
Generated on Fri Jun 28 2013 11:10:52 for ESScript by
1.8.1.2