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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3981 - (show annotations)
Fri Sep 21 02:47:54 2012 UTC (7 years ago) by jfenwick
File MIME type: text/plain
File size: 2510 byte(s)
First pass of updating copyright notices
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2012 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 since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16
17 #if !defined escript_TransportProblemException_20040608_H
18 #define escript_TransportProblemException_20040608_H
19
20 #include "system_dep.h"
21 #include "esysUtils/EsysException.h"
22
23 namespace escript
24 {
25
26 /**
27 \brief
28 TransportProblemException exception class.
29
30 Description:
31 TransportProblemException exception class.
32 The class provides a public function returning the exception name
33 */
34 class TransportProblemException : public esysUtils::EsysException {
35
36 protected:
37
38 typedef EsysException Parent;
39
40 public:
41 /**
42 \brief
43 Default constructor for the exception.
44 */
45 ESCRIPT_DLL_API
46 TransportProblemException() : Parent() { updateMessage();}
47 /**
48 \brief
49 Constructor for the exception.
50 */
51 ESCRIPT_DLL_API
52 TransportProblemException(const char *cstr) :
53 Parent(cstr) { updateMessage();}
54 /**
55 \brief
56 Constructor for the exception.
57 */
58 ESCRIPT_DLL_API
59 TransportProblemException(const std::string &str) :
60 Parent(str) { updateMessage();}
61 /**
62 \brief
63 Copy Constructor for the exception.
64 */
65 ESCRIPT_DLL_API
66 TransportProblemException(const TransportProblemException &other) :
67 Parent(other)
68 {
69 updateMessage();
70 }
71
72 ESCRIPT_DLL_API
73 inline TransportProblemException &
74 operator=(const TransportProblemException &other ) THROW(NO_ARG)
75 {
76 Parent::operator=(other);
77 updateMessage();
78 return *this;
79 }
80
81 /// Destructor
82 ESCRIPT_DLL_API
83 virtual ~TransportProblemException() 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
102 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26