1 |
jgs |
150 |
/* |
2 |
elspeth |
627 |
************************************************************ |
3 |
|
|
* Copyright 2006 by ACcESS MNRF * |
4 |
|
|
* * |
5 |
|
|
* http://www.access.edu.au * |
6 |
|
|
* Primary Business: Queensland, Australia * |
7 |
|
|
* Licensed under the Open Software License version 3.0 * |
8 |
|
|
* http://www.opensource.org/licenses/osl-3.0.php * |
9 |
|
|
* * |
10 |
|
|
************************************************************ |
11 |
jgs |
150 |
*/ |
12 |
|
|
|
13 |
|
|
#if !defined finley_BruceException_20050905_H |
14 |
|
|
#define finley_BruceException_20050905_H |
15 |
woo409 |
742 |
#include "system_dep.h" |
16 |
robwdcock |
682 |
#include "esysUtils/EsysException.h" |
17 |
jgs |
150 |
|
18 |
|
|
#include <string> |
19 |
|
|
|
20 |
|
|
namespace bruce { |
21 |
|
|
|
22 |
|
|
/** |
23 |
|
|
\brief |
24 |
|
|
Bruce exception class. |
25 |
|
|
|
26 |
|
|
Description: |
27 |
|
|
Bruce exception class. |
28 |
|
|
The class provides a public function returning the exception name. |
29 |
|
|
*/ |
30 |
|
|
|
31 |
|
|
class BruceException : public esysUtils::EsysException { |
32 |
|
|
|
33 |
|
|
public: |
34 |
|
|
|
35 |
|
|
/** |
36 |
|
|
\brief |
37 |
|
|
Default constructor for the exception. |
38 |
|
|
*/ |
39 |
woo409 |
742 |
BRUCE_DLL_API |
40 |
jgs |
150 |
BruceException() : EsysException() {} |
41 |
|
|
|
42 |
|
|
/** |
43 |
|
|
\brief |
44 |
|
|
Constructor for the exception. |
45 |
|
|
*/ |
46 |
woo409 |
742 |
BRUCE_DLL_API |
47 |
jgs |
150 |
BruceException(const char *cstr) : EsysException(cstr) {} |
48 |
|
|
|
49 |
|
|
/** |
50 |
|
|
\brief |
51 |
|
|
Constructor for the exception. |
52 |
|
|
*/ |
53 |
woo409 |
742 |
BRUCE_DLL_API |
54 |
jgs |
150 |
BruceException(const std::string &str) : EsysException(str) {} |
55 |
|
|
|
56 |
|
|
/** |
57 |
|
|
\brief |
58 |
|
|
Returns the name of the exception. |
59 |
|
|
*/ |
60 |
woo409 |
742 |
BRUCE_DLL_API |
61 |
jgs |
150 |
virtual |
62 |
|
|
std::string |
63 |
|
|
exceptionName() const {return "BruceException";} |
64 |
|
|
|
65 |
|
|
}; |
66 |
|
|
|
67 |
|
|
} // end of namespace |
68 |
|
|
|
69 |
|
|
#endif |