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