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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1312  
changed lines
  Added in v.1649

  ViewVC Help
Powered by ViewVC 1.1.26