/[escript]/branches/windows_from_1431_trunk/escript/src/TransportProblemException.h
ViewVC logotype

Contents of /branches/windows_from_1431_trunk/escript/src/TransportProblemException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1449 - (show annotations)
Thu Feb 28 13:40:48 2008 UTC (12 years, 4 months ago) by phornby
File MIME type: text/plain
File size: 1856 byte(s)
Have to go to another machine, my editor keeps crashing....


1
2 /* $Id$ */
3
4 /*******************************************************
5 *
6 * Copyright 2007 by University of Queensland
7 *
8 * http://esscc.uq.edu.au
9 * Primary Business: Queensland, Australia
10 * Licensed under the Open Software License version 3.0
11 * http://www.opensource.org/licenses/osl-3.0.php
12 *
13 *******************************************************/
14
15 #if !defined escript_TransportProblemException_20040608_H
16 #define escript_TransportProblemException_20040608_H
17
18 #include "system_dep.h"
19 #include "esysUtils/EsysException.h"
20
21 namespace escript
22 {
23
24 /**
25 \brief
26 TransportProblemException exception class.
27
28 Description:
29 TransportProblemException exception class.
30 The class provides a public function returning the exception name
31 */
32 class TransportProblemException : public esysUtils::EsysException {
33
34 protected:
35
36 typedef EsysException Parent;
37
38 public:
39 /**
40 \brief
41 Default constructor for the exception.
42 */
43 ESCRIPT_DLL_API
44 TransportProblemException() : Parent() {}
45 /**
46 \brief
47 Constructor for the exception.
48 */
49 ESCRIPT_DLL_API
50 TransportProblemException(const char *cstr) : Parent(cstr) {}
51 /**
52 \brief
53 Constructor for the exception.
54 */
55 ESCRIPT_DLL_API
56 TransportProblemException(const std::string &str) : Parent(str) {}
57
58 /// Destructor
59 ESCRIPT_DLL_API
60 virtual ~TransportProblemException() THROW() {}
61 /**
62 \brief
63 Returns the name of the exception.
64 */
65 ESCRIPT_DLL_API
66 virtual const std::string & exceptionName() const;
67
68 private:
69
70 //
71 // the exception name is immutable and class-wide.
72 // Inheritor note; you need one of these too.
73 // and an overloaded exceptionName() in your .cpp implementation file.
74 static const std::string exceptionNameValue;
75 };
76
77 } // end of namespace
78
79 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26