/[escript]/branches/windows_from_1431_trunk/finley/src/CPPAdapter/FinleyAdapterException.h
ViewVC logotype

Diff of /branches/windows_from_1431_trunk/finley/src/CPPAdapter/FinleyAdapterException.h

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

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

Legend:
Removed from v.1441  
changed lines
  Added in v.1442

  ViewVC Help
Powered by ViewVC 1.1.26