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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 474 - (show annotations)
Mon Jan 30 04:23:44 2006 UTC (13 years, 8 months ago) by jgs
File MIME type: text/plain
File size: 1815 byte(s)
restructure escript source tree
move src/Data/* -> src
remove inc
modify #includes and cpppath settings accordingly

1 /*
2 *****************************************************************************
3 * *
4 * COPYRIGHT ACcESS - All Rights Reserved *
5 * *
6 * This software is the property of ACcESS. No part of this code *
7 * may be copied in any form or by any means without the expressed written *
8 * consent of ACcESS. Copying, use or modification of this software *
9 * by any unauthorised person is illegal unless that person has a software *
10 * license agreement with ACcESS. *
11 * *
12 *****************************************************************************
13 */
14
15 #if !defined escript_DataException_20040324_H
16 #define escript_DataException_20040324_H
17
18 #include "EsysException.h"
19
20 #include <string>
21
22 namespace escript {
23
24 /**
25 \brief
26 DataException exception class.
27
28 Description:
29 DataException exception class.
30 The class provides a public function returning the exception name
31 */
32 class DataException:public esysUtils::EsysException {
33
34 public:
35 /**
36 \brief
37 Default constructor for the exception.
38 */
39 DataException() : esysUtils::EsysException() {}
40 /**
41 \brief
42 Constructor for the exception.
43 */
44 DataException(const char *cstr) : esysUtils::EsysException(cstr) {}
45 /**
46 \brief
47 Constructor for the exception.
48 */
49 DataException(const std::string &str) : esysUtils::EsysException(str) {}
50 /**
51 \brief
52 Returns the name of the exception.
53 */
54 virtual std::string exceptionName() const {return "DataException";}
55 };
56
57 } // end of namespace
58 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26