/[escript]/trunk/bruce/src/BruceException.h
ViewVC logotype

Contents of /trunk/bruce/src/BruceException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1455 - (show annotations)
Thu Feb 28 17:19:44 2008 UTC (11 years, 3 months ago) by phornby
File MIME type: text/plain
File size: 1695 byte(s)
Merge of branches/windows_from_1431_trunk.

Revamp of the exception system.
Fix unused vars and signed/unsigned comparisons.
defined a macro THROW(ARG) in the system_dep.h's to
deal with the expectations of declarations on different architectures.

Details in the logs of branches/windows_from_1431_trunk.

pre-merge snapshot of the trunk in tags/trunk_at_1452


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() {}
70
71 /**
72 \Brief
73 Returns The Name Of The Exception.
74 */
75 BRUCE_Dll_API
76 Virtual
77 const std::string &
78 exceptionName() const;
79
80 };
81
82 } // End Of Namespace
83
84 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26