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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (hide annotations)
Thu Sep 25 23:11:13 2008 UTC (11 years, 1 month ago) by ksteube
File MIME type: text/plain
File size: 2324 byte(s)
Copyright updated in all files

1 jgs 474
2 ksteube 1312 /*******************************************************
3 ksteube 1811 *
4     * Copyright (c) 2003-2008 by University of Queensland
5     * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 ksteube 1312
14 ksteube 1811
15 jgs 82 #if !defined escript_SystemMatrixException_20040608_H
16     #define escript_SystemMatrixException_20040608_H
17    
18 woo409 757 #include "system_dep.h"
19 robwdcock 682 #include "esysUtils/EsysException.h"
20 jgs 474
21 phornby 1455 namespace escript
22     {
23 jgs 82
24 phornby 1455 /**
25     \brief
26     SystemMatrixException exception class.
27 jgs 82
28 phornby 1455 Description:
29     SystemMatrixException exception class.
30     The class provides a public function returning the exception name
31     */
32     class SystemMatrixException : public esysUtils::EsysException
33     {
34 jgs 82
35 phornby 1455 protected:
36 jgs 82
37 phornby 1455 typedef EsysException Parent;
38 phornby 1020
39 phornby 1455 public:
40     /**
41     \brief
42     Default constructor for the exception.
43     */
44     ESCRIPT_DLL_API
45     SystemMatrixException() : Parent() { updateMessage();}
46     /**
47     \brief
48     Constructor for the exception.
49     */
50     ESCRIPT_DLL_API
51     SystemMatrixException(const char *cstr) : Parent(cstr) { updateMessage();}
52     /**
53     \brief
54     Constructor for the exception.
55     */
56     ESCRIPT_DLL_API
57     SystemMatrixException(const std::string &str) :
58     Parent(str) { updateMessage();}
59     /**
60     \brief
61     Copy Constructor for the exception.
62     */
63     ESCRIPT_DLL_API
64     SystemMatrixException(const SystemMatrixException &other) : Parent(other)
65     {
66     updateMessage();
67     }
68 jgs 82
69 phornby 1628 ESCRIPT_DLL_API
70 phornby 1649 inline SystemMatrixException &
71 phornby 1628 operator=(const SystemMatrixException &other ) THROW_ANY
72     {
73     Parent::operator=(other);
74     updateMessage();
75     return *this;
76     }
77    
78 phornby 1455 /// Destructor
79     ESCRIPT_DLL_API
80 phornby 1628 virtual ~SystemMatrixException() THROW_ANY {}
81 phornby 1455 /**
82     \brief
83     Returns the name of the exception.
84     */
85     ESCRIPT_DLL_API
86     virtual const std::string & exceptionName() const;
87    
88     private:
89    
90     //
91     // the exception name is immutable and class-wide.
92     // Inheritor note; you need one of these too.
93     // and an overloaded exceptionName() in your .cpp implementation file.
94     static const std::string exceptionNameValue;
95     };
96    
97 jgs 82 } // end of namespace
98     #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26