/[escript]/trunk/dudley/src/CPPAdapter/DudleyAdapterException.h
ViewVC logotype

Annotation of /trunk/dudley/src/CPPAdapter/DudleyAdapterException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3675 - (hide annotations)
Thu Nov 17 00:53:38 2011 UTC (7 years, 5 months ago) by jfenwick
File MIME type: text/plain
File size: 2387 byte(s)
pasowrap joins the trunk.

1 ksteube 1312
2     /*******************************************************
3 phornby 1455 *
4 jfenwick 2881 * Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7 phornby 1455 *
8 ksteube 1811 * 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 phornby 1455 *
12     *******************************************************/
13 ksteube 1312
14 ksteube 1811
15 jfenwick 3086 #if !defined dudley_DudleyAdapterException_20040526_H
16     #define dudley_DudleyAdapterException_20040526_H
17 caltinay 2898 #include "system_dep.h"
18 jgs 82
19 robwdcock 682 #include "esysUtils/EsysException.h"
20 jgs 472
21 jfenwick 3082 namespace dudley
22 phornby 1455 {
23 jgs 82
24 phornby 1455 /**
25     \brief
26 jfenwick 3086 DudleyAdapterException exception class.
27 jgs 82
28 phornby 1455 Description:
29 jfenwick 3086 DudleyAdapterException exception class.
30 phornby 1455 The class provides a public function returning the exception name
31     */
32 jfenwick 3086 class DudleyAdapterException : public esysUtils::EsysException
33 phornby 1455 {
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 jfenwick 3086 DUDLEY_DLL_API
45     DudleyAdapterException() : Parent() { updateMessage();}
46 phornby 1455 /**
47     \brief
48     Constructor for the exception.
49     */
50 jfenwick 3086 DUDLEY_DLL_API
51     DudleyAdapterException(const char *cstr) : Parent(cstr) { updateMessage();}
52 phornby 1455 /**
53     \brief
54     Constructor for the exception.
55     */
56 jfenwick 3086 DUDLEY_DLL_API
57     DudleyAdapterException(const std::string &str) :
58 phornby 1455 Parent(str) { updateMessage();}
59     /**
60     \brief
61     Copy Constructor for the exception.
62     */
63 jfenwick 3086 DUDLEY_DLL_API
64     DudleyAdapterException(const DudleyAdapterException &other) : Parent(other)
65 phornby 1455 {
66     updateMessage();
67     }
68 jgs 82
69 phornby 1455 /// Destructor
70 jfenwick 3086 DUDLEY_DLL_API
71     virtual ~DudleyAdapterException() THROW(NO_ARG) {}
72 phornby 1628
73 phornby 1455 /**
74     \brief
75 phornby 1628 Assignment operator.
76     */
77 jfenwick 3086 DUDLEY_DLL_API
78     inline DudleyAdapterException &
79     operator=(const DudleyAdapterException &other ) THROW(NO_ARG)
80 phornby 1628 {
81     Parent::operator=(other);
82     updateMessage();
83     return *this;
84     }
85    
86     /**
87     \brief
88 phornby 1455 Returns the name of the exception.
89     */
90 jfenwick 3086 DUDLEY_DLL_API
91 phornby 1455 virtual const std::string & exceptionName() const;
92    
93     private:
94    
95     //
96     // the exception name is immutable and class-wide.
97     // Inheritor note; you need one of these too.
98     // and an overloaded exceptionName() in your .cpp implementation file.
99     static const std::string exceptionNameValue;
100     };
101    
102 jgs 82 } // end of namespace
103     #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mergeinfo /branches/pasowrap/dudley/src/CPPAdapter/DudleyAdapterException.h:3661-3674 /branches/scons_revamp_from_3210/dudley/src/CPPAdapter/DudleyAdapterException.h:3212-3243

  ViewVC Help
Powered by ViewVC 1.1.26