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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (hide annotations)
Tue Oct 26 06:53:54 2004 UTC (15 years ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataException.h
File MIME type: text/plain
File size: 1866 byte(s)
Initial revision

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26