1 |
ksteube |
1312 |
|
2 |
|
|
/* $Id$ */ |
3 |
|
|
|
4 |
|
|
/******************************************************* |
5 |
trankine |
1441 |
* |
6 |
|
|
* Copyright 2003-2007 by ACceSS MNRF |
7 |
|
|
* Copyright 2007 by University of Queensland |
8 |
|
|
* |
9 |
|
|
* http://esscc.uq.edu.au |
10 |
|
|
* Primary Business: Queensland, Australia |
11 |
|
|
* Licensed under the Open Software License version 3.0 |
12 |
|
|
* http://www.opensource.org/licenses/osl-3.0.php |
13 |
|
|
* |
14 |
|
|
*******************************************************/ |
15 |
ksteube |
1312 |
|
16 |
jgs |
82 |
#if !defined escript_FunctionSpaceException_20040602_H |
17 |
|
|
#define escript_FunctionSpaceException_20040602_H |
18 |
woo409 |
757 |
#include "system_dep.h" |
19 |
jgs |
82 |
|
20 |
robwdcock |
682 |
#include "esysUtils/EsysException.h" |
21 |
jgs |
82 |
|
22 |
trankine |
1441 |
namespace escript |
23 |
|
|
{ |
24 |
jgs |
82 |
|
25 |
|
|
/** |
26 |
trankine |
1441 |
\brief |
27 |
|
|
FunctionSpaceException exception class. |
28 |
phornby |
1020 |
|
29 |
trankine |
1441 |
Description: |
30 |
|
|
FunctionSpaceException exception class. |
31 |
|
|
The class provides a public function returning the exception name |
32 |
jgs |
82 |
*/ |
33 |
trankine |
1441 |
class FunctionSpaceException : public esysUtils::EsysException |
34 |
|
|
{ |
35 |
jgs |
82 |
|
36 |
trankine |
1441 |
public: |
37 |
|
|
/** |
38 |
|
|
\brief |
39 |
|
|
Default constructor for the exception. |
40 |
|
|
*/ |
41 |
|
|
ESCRIPT_DLL_API |
42 |
|
|
FunctionSpaceException() : EsysException() {} |
43 |
|
|
/** |
44 |
|
|
\brief |
45 |
|
|
Constructor for the exception. |
46 |
|
|
*/ |
47 |
|
|
ESCRIPT_DLL_API |
48 |
|
|
FunctionSpaceException(const char *cstr) : EsysException(cstr) {} |
49 |
|
|
/** |
50 |
|
|
\brief |
51 |
|
|
Constructor for the exception. |
52 |
|
|
*/ |
53 |
|
|
ESCRIPT_DLL_API |
54 |
|
|
FunctionSpaceException(const std::string &str) : EsysException(str) {} |
55 |
|
|
|
56 |
|
|
/// Destructor |
57 |
|
|
ESCRIPT_DLL_API |
58 |
|
|
virtual ~FunctionSpaceException() throw() {} |
59 |
|
|
/** |
60 |
|
|
\brief |
61 |
|
|
Returns the name of the exception. |
62 |
|
|
*/ |
63 |
|
|
ESCRIPT_DLL_API |
64 |
|
|
virtual const std::string & exceptionName() const; |
65 |
|
|
|
66 |
|
|
private: |
67 |
|
|
|
68 |
|
|
// |
69 |
|
|
// the exception name is immutable and class-wide. |
70 |
|
|
// Inheritor note; you need one of these too. |
71 |
|
|
// and an overloaded exceptionName() in your .cpp implementation file. |
72 |
|
|
static const std::string exceptionNameValue; |
73 |
|
|
}; |
74 |
|
|
|
75 |
jgs |
82 |
} // end of namespace |
76 |
|
|
#endif |