/[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/Data/SystemMatrixException.h revision 468 by jgs, Wed Jan 25 06:50:39 2006 UTC trunk/escript/src/TransportProblemException.h revision 1455 by phornby, Thu Feb 28 17:19:44 2008 UTC
# Line 1  Line 1 
 /*  
  *****************************************************************************  
  *                                                                           *  
  *       COPYRIGHT  ACcESS  -  All Rights Reserved                           *  
  *                                                                           *  
  * This software is the property of ACcESS. No part of this code             *  
  * may be copied in any form or by any means without the expressed written   *  
  * consent of ACcESS.  Copying, use or modification of this software         *  
  * by any unauthorised person is illegal unless that person has a software   *  
  * license agreement with ACcESS.                                            *  
  *                                                                           *  
  *****************************************************************************  
 */  
                                                                             
 #if !defined  escript_SystemMatrixException_20040608_H  
 #define escript_SystemMatrixException_20040608_H  
   
 #include "EsysException.h"  
 #include <string>  
   
 namespace escript {  
   
 /**  
    \brief  
    SystemMatrixException exception class.  
   
    Description:  
    SystemMatrixException exception class.  
    The class provides a public function returning the exception name  
 */  
 class SystemMatrixException:public esysUtils::EsysException {  
1    
2   public:  /* $Id$ */
3    /**  
4       \brief  /*******************************************************
5       Default constructor for the exception.  *
6    */  *       Copyright 2007 by University of Queensland
7    SystemMatrixException() : EsysException() {}  *
8    /**  *                http://esscc.uq.edu.au
9       \brief  *        Primary Business: Queensland, Australia
10       Constructor for the exception.  *  Licensed under the Open Software License version 3.0
11    */  *     http://www.opensource.org/licenses/osl-3.0.php
12    SystemMatrixException(const char *cstr) : EsysException(cstr) {}  *
13    /**  *******************************************************/
14       \brief  
15       Constructor for the exception.  #if !defined  escript_TransportProblemException_20040608_H
16    */  #define escript_TransportProblemException_20040608_H
17    SystemMatrixException(const std::string &str) : EsysException(str) {}  
18    #include "system_dep.h"
19    #include "esysUtils/EsysException.h"
20    
21    namespace escript
22    {
23    
24    /**    /**
25       \brief    \brief
26       Returns the name of the exception.    TransportProblemException exception class.
27    
28      Description:
29      TransportProblemException exception class.
30      The class provides a public function returning the exception name
31    */    */
32    virtual std::string exceptionName() const {return "SystemMatrixException";}    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() { updateMessage();}
45        /**
46        \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        /// Destructor
71        ESCRIPT_DLL_API
72        virtual ~TransportProblemException() THROW() {}
73        /**
74        \brief
75        Returns the name of the exception.
76        */
77        ESCRIPT_DLL_API
78        virtual const std::string & exceptionName() const;
79    
80      private:
81    
82        //
83        // the exception name is immutable and class-wide.
84        // Inheritor note; you need one of these too.
85        // and an overloaded exceptionName() in your .cpp implementation file.
86        static const std::string exceptionNameValue;
87      };
88    
89  } // end of namespace  } // end of namespace
90    
91  #endif  #endif

Legend:
Removed from v.468  
changed lines
  Added in v.1455

  ViewVC Help
Powered by ViewVC 1.1.26