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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 jgs 82 /*
2 elspeth 615 ************************************************************
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 jgs 82 */
12 jgs 474
13 jgs 82 #if !defined escript_DomainException_20040608_H
14     #define escript_DomainException_20040608_H
15    
16 jgs 468 #include "EsysException.h"
17 jgs 474
18 jgs 82 #include <string>
19    
20     namespace escript {
21    
22     /**
23     \brief
24     DomainException exception class.
25    
26     Description:
27     DomainException exception class.
28     The class provides a public function returning the exception name
29     */
30     class DomainException:public esysUtils::EsysException {
31    
32     public:
33     /**
34     \brief
35     Default constructor for the exception.
36     */
37     DomainException() : EsysException() {}
38     /**
39     \brief
40     Constructor for the exception.
41     */
42     DomainException(const char *cstr) : EsysException(cstr) {}
43     /**
44     \brief
45     Constructor for the exception.
46     */
47     DomainException(const std::string &str) : EsysException(str) {}
48     /**
49     \brief
50     Returns the name of the exception.
51     */
52     virtual std::string exceptionName() const {return "DomainException";}
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