Escript
Revision_4320
Main Page
Namespaces
Classes
Files
File List
File Members
escript
src
DomainException.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_DomainException_20040608_H
18
#define escript_DomainException_20040608_H
19
#include "
system_dep.h
"
20
21
#include "esysUtils/EsysException.h"
22
23
namespace
escript
24
{
25
34
class
DomainException
:
public
esysUtils::EsysException
35
{
36
37
protected
:
38
39
typedef
EsysException
Parent
;
40
41
public
:
46
ESCRIPT_DLL_API
47
DomainException
() :
Parent
() {
updateMessage
();}
52
ESCRIPT_DLL_API
53
DomainException
(
const
char
*cstr) :
Parent
(cstr) {
updateMessage
();}
58
ESCRIPT_DLL_API
59
DomainException
(
const
std::string &str) :
Parent
(str) {
updateMessage
();}
64
ESCRIPT_DLL_API
65
DomainException
(
const
DomainException
&other) :
Parent
(other)
66
{
67
updateMessage
();
68
}
69
70
ESCRIPT_DLL_API
71
inline
virtual
DomainException
&
72
operator=
(
const
DomainException
&other )
THROW
(
NO_ARG
)
73
{
74
Parent::operator=
(other);
75
updateMessage
();
76
return
*
this
;
77
}
78
80
ESCRIPT_DLL_API
81
virtual
~DomainException
()
THROW
(
NO_ARG
) {}
86
ESCRIPT_DLL_API
87
virtual
const
std::string &
exceptionName
()
const
;
88
89
private
:
90
91
//
92
// the exception name is immutable and class-wide.
93
// Inheritor note; you need one of these too.
94
// and an overloaded exceptionName() in your .cpp implementation file.
95
static
const
std::string
exceptionNameValue
;
96
};
97
98
}
// end of namespace
99
#endif
Generated on Fri Mar 15 2013 14:07:50 for Escript by
1.8.1.2