/[escript]/branches/windows_from_1431_trunk/escript/src/DataException.h
ViewVC logotype

Contents of /branches/windows_from_1431_trunk/escript/src/DataException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1449 - (show annotations)
Thu Feb 28 13:40:48 2008 UTC (12 years, 4 months ago) by phornby
File MIME type: text/plain
File size: 1812 byte(s)
Have to go to another machine, my editor keeps crashing....


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 escript_DataException_20040324_H
17 #define escript_DataException_20040324_H
18 #include "system_dep.h"
19
20 #include "esysUtils/EsysException.h"
21
22 namespace escript
23 {
24
25 /**
26 \brief
27 DataException exception class.
28
29 Description:
30 DataException exception class.
31 The class provides a public function returning the exception name
32 */
33 class DataException : public esysUtils::EsysException
34 {
35
36 protected:
37
38 typedef EsysException Parent;
39
40 public:
41 /**
42 \brief
43 Default constructor for the exception.
44 */
45 ESCRIPT_DLL_API
46 DataException() : Parent() {}
47 /**
48 \brief
49 Constructor for the exception.
50 */
51 ESCRIPT_DLL_API
52 DataException(const char *cstr) : Parent(cstr) {}
53 /**
54 \brief
55 Constructor for the exception.
56 */
57 ESCRIPT_DLL_API
58 DataException(const std::string &str) : Parent(str) {}
59
60 /// Destructor
61 ESCRIPT_DLL_API
62 virtual ~DataException() THROW() {}
63
64 /**
65 \brief
66 Returns the name of the exception.
67 */
68 ESCRIPT_DLL_API
69 virtual const std::string & exceptionName() const;
70
71 private:
72
73 //
74 // the exception name is immutable and class-wide.
75 // Inheritor note; you need one of these too.
76 // and an overloaded exceptionName() in your .cpp implementation file.
77 static const std::string exceptionNameValue;
78
79
80 };
81
82 } // end of namespace
83
84
85 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26