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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1312 - (show annotations)
Mon Sep 24 06:18:44 2007 UTC (12 years ago) by ksteube
File MIME type: text/plain
File size: 1545 byte(s)
The MPI branch is hereby closed. All future work should be in trunk.

Previously in revision 1295 I merged the latest changes to trunk into trunk-mpi-branch.
In this revision I copied all files from trunk-mpi-branch over the corresponding
trunk files. I did not use 'svn merge', it was a copy.

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_DomainException_20040608_H
17 #define escript_DomainException_20040608_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 DomainException exception class.
29
30 Description:
31 DomainException exception class.
32 The class provides a public function returning the exception name
33 */
34 class DomainException:public esysUtils::EsysException {
35
36 public:
37 /**
38 \brief
39 Default constructor for the exception.
40 */
41 ESCRIPT_DLL_API
42 DomainException() : EsysException() {}
43 /**
44 \brief
45 Constructor for the exception.
46 */
47 ESCRIPT_DLL_API
48 DomainException(const char *cstr) : EsysException(cstr) {}
49 /**
50 \brief
51 Constructor for the exception.
52 */
53 ESCRIPT_DLL_API
54 DomainException(const std::string &str) : EsysException(str) {}
55
56 /// Destructor
57 ESCRIPT_DLL_API
58 virtual ~DomainException() throw() {}
59 /**
60 \brief
61 Returns the name of the exception.
62 */
63 ESCRIPT_DLL_API
64 virtual std::string exceptionName() const {return "DomainException";}
65 };
66
67 } // end of namespace
68 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26