/[escript]/trunk/escript/src/FunctionSpaceException.h
ViewVC logotype

Contents of /trunk/escript/src/FunctionSpaceException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1022 - (show annotations)
Tue Mar 13 02:25:53 2007 UTC (12 years, 8 months ago) by phornby
File MIME type: text/plain
File size: 1815 byte(s)
Now define the destructors for all the Exceptions (sorry guys & gals).


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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26