1 |
/* |
2 |
************************************************************ |
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 |
*/ |
12 |
|
13 |
#if !defined finley_FinleyAdapterException_20040526_H |
14 |
#define finley_FinleyAdapterException_20040526_H |
15 |
#include "system_dep.h" |
16 |
|
17 |
#include "esysUtils/EsysException.h" |
18 |
|
19 |
#include <string> |
20 |
|
21 |
namespace finley { |
22 |
|
23 |
/** |
24 |
\brief |
25 |
FinleyAdapterException exception class. |
26 |
|
27 |
Description: |
28 |
FinleyAdapterException exception class. |
29 |
The class provides a public function returning the exception name |
30 |
*/ |
31 |
class FinleyAdapterException:public esysUtils::EsysException { |
32 |
|
33 |
public: |
34 |
/** |
35 |
\brief |
36 |
Default constructor for the exception. |
37 |
*/ |
38 |
FINLEY_DLL_API |
39 |
FinleyAdapterException() : EsysException() {} |
40 |
/** |
41 |
\brief |
42 |
Constructor for the exception. |
43 |
*/ |
44 |
FINLEY_DLL_API |
45 |
FinleyAdapterException(const char *cstr) : EsysException(cstr) {} |
46 |
/** |
47 |
\brief |
48 |
Constructor for the exception. |
49 |
*/ |
50 |
FINLEY_DLL_API |
51 |
FinleyAdapterException(const std::string &str) : EsysException(str) {} |
52 |
|
53 |
/// Destructor |
54 |
FINLEY_DLL_API |
55 |
virtual ~FinleyAdapterException() throw(); |
56 |
/** |
57 |
\brief |
58 |
Returns the name of the exception. |
59 |
*/ |
60 |
FINLEY_DLL_API |
61 |
virtual std::string exceptionName() const {return "FinleyAdapterException";} |
62 |
}; |
63 |
|
64 |
} // end of namespace |
65 |
#endif |