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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1312 - (show annotations)
Mon Sep 24 06:18:44 2007 UTC (11 years, 11 months ago) by ksteube
File MIME type: text/plain
File size: 1515 byte(s)
The MPI branch is hereby closed. All future work should be in trunk.

Previously in revision 1295 I merged the latest changes to trunk into trunk-mpi-branch.
In this revision I copied all files from trunk-mpi-branch over the corresponding
trunk files. I did not use 'svn merge', it was a copy.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26