2
/*******************************************************
4
* Copyright (c) 2003-2010 by University of Queensland
5
* Earth Systems Science Computational Center (ESSCC)
6
* http://www.uq.edu.au/esscc
8
* Primary Business: Queensland, Australia
9
* Licensed under the Open Software License version 3.0
10
* http://www.opensource.org/licenses/osl-3.0.php
12
*******************************************************/
15
#if !defined dudley_DudleyAdapterException_20040526_H
16
#define dudley_DudleyAdapterException_20040526_H
17
#include "system_dep.h"
19
#include "esysUtils/EsysException.h"
26
DudleyAdapterException exception class.
29
DudleyAdapterException exception class.
30
The class provides a public function returning the exception name
32
class DudleyAdapterException : public esysUtils::EsysException
37
typedef EsysException Parent;
42
Default constructor for the exception.
45
DudleyAdapterException() : Parent() { updateMessage();}
48
Constructor for the exception.
51
DudleyAdapterException(const char *cstr) : Parent(cstr) { updateMessage();}
54
Constructor for the exception.
57
DudleyAdapterException(const std::string &str) :
58
Parent(str) { updateMessage();}
61
Copy Constructor for the exception.
64
DudleyAdapterException(const DudleyAdapterException &other) : Parent(other)
71
virtual ~DudleyAdapterException() THROW(NO_ARG) {}
78
inline DudleyAdapterException &
79
operator=(const DudleyAdapterException &other ) THROW(NO_ARG)
81
Parent::operator=(other);
88
Returns the name of the exception.
91
virtual const std::string & exceptionName() const;
96
// the exception name is immutable and class-wide.
97
// Inheritor note; you need one of these too.
98
// and an overloaded exceptionName() in your .cpp implementation file.
99
static const std::string exceptionNameValue;
102
} // end of namespace