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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615 - (show annotations)
Wed Mar 22 02:12:00 2006 UTC (13 years, 6 months ago) by elspeth
File MIME type: text/plain
File size: 1504 byte(s)
More copyright information.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26