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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1387 - (show annotations)
Fri Jan 11 07:45:26 2008 UTC (11 years, 11 months ago) by trankine
Original Path: temp/escript/src/DataException.h
File MIME type: text/plain
File size: 1559 byte(s)
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.
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 #include <string>
23
24 namespace escript {
25
26 /**
27 \brief
28 DataException exception class.
29
30 Description:
31 DataException exception class.
32 The class provides a public function returning the exception name
33 */
34 class DataException:public esysUtils::EsysException {
35
36 public:
37 /**
38 \brief
39 Default constructor for the exception.
40 */
41 ESCRIPT_DLL_API
42 DataException() : esysUtils::EsysException() {}
43 /**
44 \brief
45 Constructor for the exception.
46 */
47 ESCRIPT_DLL_API
48 DataException(const char *cstr) : esysUtils::EsysException(cstr) {}
49 /**
50 \brief
51 Constructor for the exception.
52 */
53 ESCRIPT_DLL_API
54 DataException(const std::string &str) : esysUtils::EsysException(str) {}
55
56 /// Destructor
57 ESCRIPT_DLL_API
58 virtual ~DataException() throw() {}
59
60 /**
61 \brief
62 Returns the name of the exception.
63 */
64 ESCRIPT_DLL_API
65 virtual std::string exceptionName() const {return "DataException";}
66 };
67
68 } // end of namespace
69 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26