1 |
/* |
2 |
***************************************************************************** |
3 |
* * |
4 |
* COPYRIGHT ACcESS - All Rights Reserved * |
5 |
* * |
6 |
* This software is the property of ACcESS. No part of this code * |
7 |
* may be copied in any form or by any means without the expressed written * |
8 |
* consent of ACcESS. Copying, use or modification of this software * |
9 |
* by any unauthorised person is illegal unless that person has a software * |
10 |
* license agreement with ACcESS. * |
11 |
* * |
12 |
***************************************************************************** |
13 |
*/ |
14 |
|
15 |
#if !defined finley_BruceException_20050905_H |
16 |
#define finley_BruceException_20050905_H |
17 |
|
18 |
#include "EsysException.h" |
19 |
|
20 |
#include <string> |
21 |
|
22 |
namespace bruce { |
23 |
|
24 |
/** |
25 |
\brief |
26 |
Bruce exception class. |
27 |
|
28 |
Description: |
29 |
Bruce exception class. |
30 |
The class provides a public function returning the exception name. |
31 |
*/ |
32 |
|
33 |
class BruceException : public esysUtils::EsysException { |
34 |
|
35 |
public: |
36 |
|
37 |
/** |
38 |
\brief |
39 |
Default constructor for the exception. |
40 |
*/ |
41 |
BruceException() : EsysException() {} |
42 |
|
43 |
/** |
44 |
\brief |
45 |
Constructor for the exception. |
46 |
*/ |
47 |
BruceException(const char *cstr) : EsysException(cstr) {} |
48 |
|
49 |
/** |
50 |
\brief |
51 |
Constructor for the exception. |
52 |
*/ |
53 |
BruceException(const std::string &str) : EsysException(str) {} |
54 |
|
55 |
/** |
56 |
\brief |
57 |
Returns the name of the exception. |
58 |
*/ |
59 |
virtual |
60 |
std::string |
61 |
exceptionName() const {return "BruceException";} |
62 |
|
63 |
}; |
64 |
|
65 |
} // end of namespace |
66 |
|
67 |
#endif |