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

Contents of /branches/subworld2/escriptcore/src/TransportProblemException.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: 2578 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_TransportProblemException_20040608_H
19 #define escript_TransportProblemException_20040608_H
20
21 #include "system_dep.h"
22 #include "esysUtils/EsysException.h"
23
24 namespace escript
25 {
26
27 /**
28 \brief
29 TransportProblemException exception class.
30
31 Description:
32 TransportProblemException exception class.
33 The class provides a public function returning the exception name
34 */
35 class TransportProblemException : public esysUtils::EsysException {
36
37 protected:
38
39 typedef EsysException Parent;
40
41 public:
42 /**
43 \brief
44 Default constructor for the exception.
45 */
46 ESCRIPT_DLL_API
47 TransportProblemException() : Parent() { updateMessage();}
48 /**
49 \brief
50 Constructor for the exception.
51 */
52 ESCRIPT_DLL_API
53 TransportProblemException(const char *cstr) :
54 Parent(cstr) { updateMessage();}
55 /**
56 \brief
57 Constructor for the exception.
58 */
59 ESCRIPT_DLL_API
60 TransportProblemException(const std::string &str) :
61 Parent(str) { updateMessage();}
62 /**
63 \brief
64 Copy Constructor for the exception.
65 */
66 ESCRIPT_DLL_API
67 TransportProblemException(const TransportProblemException &other) :
68 Parent(other)
69 {
70 updateMessage();
71 }
72
73 ESCRIPT_DLL_API
74 inline TransportProblemException &
75 operator=(const TransportProblemException &other ) THROW(NO_ARG)
76 {
77 Parent::operator=(other);
78 updateMessage();
79 return *this;
80 }
81
82 /// Destructor
83 ESCRIPT_DLL_API
84 virtual ~TransportProblemException() THROW(NO_ARG) {}
85 /**
86 \brief
87 Returns the name of the exception.
88 */
89 ESCRIPT_DLL_API
90 virtual const std::string & exceptionName() const;
91
92 private:
93
94 //
95 // the exception name is immutable and class-wide.
96 // Inheritor note; you need one of these too.
97 // and an overloaded exceptionName() in your .cpp implementation file.
98 static const std::string exceptionNameValue;
99 };
100
101 } // end of namespace
102
103 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26