/[escript]/branches/subworld2/escriptcore/src/SystemMatrixException.h
ViewVC logotype

Contents of /branches/subworld2/escriptcore/src/SystemMatrixException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5504 - (show annotations)
Wed Mar 4 22:58:13 2015 UTC (4 years, 1 month ago) by jfenwick
File MIME type: text/plain
File size: 2519 byte(s)
Again with a more up to date copy


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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26