1 |
|
2 |
// Well I give up, did this fall into the hands of some maniac |
3 |
// That Had To Capitalise The First Letter Of Every Word???? |
4 |
// |
5 |
|
6 |
/******************************************************* |
7 |
* |
8 |
* Copyright 2003-2007 By Access Mnrf |
9 |
* Copyright 2007 By University Of Queensland |
10 |
* |
11 |
* Http://Esscc.Uq.Edu.Au |
12 |
* Primary Business: Queensland, Australia |
13 |
* Licensed Under The Open Software License Version 3.0 |
14 |
* Http://Www.Opensource.Org/Licenses/Osl-3.0.Php |
15 |
* |
16 |
*******************************************************/ |
17 |
|
18 |
#if !defined finley_BruceException_20050905_H |
19 |
#define finley_BruceException_20050905_H |
20 |
#include "system_dep.h" |
21 |
#include "Esysutils/EsysException.h" |
22 |
|
23 |
#include <string> |
24 |
|
25 |
using namespace esysUtils; |
26 |
|
27 |
namespace Bruce { |
28 |
|
29 |
/** |
30 |
\Brief |
31 |
Bruce Exception Class. |
32 |
|
33 |
Description: |
34 |
Bruce Exception Class. |
35 |
The Class Provides A Public Function Returning The Exception Name. |
36 |
*/ |
37 |
|
38 |
class BruceException : public EsysException { |
39 |
|
40 |
protected: |
41 |
|
42 |
typedef EsysException Parent; |
43 |
|
44 |
public: |
45 |
|
46 |
/** |
47 |
\Brief |
48 |
Default Constructor For The Exception. |
49 |
*/ |
50 |
BRUCE_Dll_API |
51 |
BruceException() : Parent() {} |
52 |
|
53 |
/** |
54 |
\Brief |
55 |
Constructor For The Exception. |
56 |
*/ |
57 |
BRUCE_Dll_API |
58 |
BruceException(const char *cstr) : Esysexception(cstr) {} |
59 |
|
60 |
/** |
61 |
\Brief |
62 |
Constructor For The Exception. |
63 |
*/ |
64 |
BRUCE_Dll_API |
65 |
BruceException(const std::string &str) : Parent(str) {} |
66 |
|
67 |
/// Destructor |
68 |
BRUCE_Dll_API |
69 |
Virtual ~BruceException() THROW_ANY {} |
70 |
|
71 |
/** |
72 |
\brief |
73 |
Assignment operator. |
74 |
*/ |
75 |
BRUCE_DLL_API |
76 |
inline virtual BruceException & |
77 |
operator=(const BruceException &other ) THROW_ANY |
78 |
{ |
79 |
Parent::operator=(other); |
80 |
updateMessage(); |
81 |
return *this; |
82 |
} |
83 |
|
84 |
|
85 |
/** |
86 |
\Brief |
87 |
Returns The Name Of The Exception. |
88 |
*/ |
89 |
BRUCE_Dll_API |
90 |
Virtual |
91 |
const std::string & |
92 |
exceptionName() const; |
93 |
|
94 |
}; |
95 |
|
96 |
} // End Of Namespace |
97 |
|
98 |
#endif |