/[escript]/branches/windows_from_1431_trunk/bruce/src/BruceException.h
ViewVC logotype

Diff of /branches/windows_from_1431_trunk/bruce/src/BruceException.h

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

revision 1448 by phornby, Thu Feb 28 10:47:57 2008 UTC revision 1449 by phornby, Thu Feb 28 13:40:48 2008 UTC
# Line 1  Line 1 
1    
2  /* $Id$ */  // Well I give up, did this fall into the hands of some maniac
3    // That Had To Capitalise The First Letter Of Every Word????
4    //
5    
6  /*******************************************************  /*******************************************************
7   *  *
8   *           Copyright 2003-2007 by ACceSS MNRF  *           Copyright 2003-2007 By Access Mnrf
9   *       Copyright 2007 by University of Queensland  *       Copyright 2007 By University Of Queensland
10   *  *
11   *                http://esscc.uq.edu.au  *                Http://Esscc.Uq.Edu.Au
12   *        Primary Business: Queensland, Australia  *        Primary Business: Queensland, Australia
13   *  Licensed under the Open Software License version 3.0  *  Licensed Under The Open Software License Version 3.0
14   *     http://www.opensource.org/licenses/osl-3.0.php  *     Http://Www.Opensource.Org/Licenses/Osl-3.0.Php
15   *  *
16   *******************************************************/  *******************************************************/
17    
18  #if !defined finley_BruceException_20050905_H  #if !defined finley_BruceException_20050905_H
19  #define finley_BruceException_20050905_H  #define finley_BruceException_20050905_H
20  #include "system_dep.h"  #include "system_dep.h"
21  #include "esysUtils/EsysException.h"  #include "Esysutils/EsysException.h"
22    
23  #include <string>  #include <string>
24    
25  namespace bruce {  using namespace esysUtils;
26    
27  /**  namespace Bruce {
    \brief  
    Bruce exception class.  
   
    Description:  
    Bruce exception class.  
    The class provides a public function returning the exception name.  
 */  
   
 class BruceException : public esysUtils::EsysException {  
   
  public:  
28    
29    /**    /**
30       \brief    \Brief
31       Default constructor for the exception.    Bruce Exception Class.
   */  
   BRUCE_DLL_API  
   BruceException() : EsysException() {}  
32    
33    /**    Description:
34       \brief    Bruce Exception Class.
35       Constructor for the exception.    The Class Provides A Public Function Returning The Exception Name.
36    */    */
   BRUCE_DLL_API  
   BruceException(const char *cstr) : EsysException(cstr) {}  
37    
38    /**    class BruceException : public EsysException {
      \brief  
      Constructor for the exception.  
   */  
   BRUCE_DLL_API  
   BruceException(const std::string &str) : EsysException(str) {}  
39    
40    /// Destructor    protected:
   BRUCE_DLL_API  
   virtual ~BruceException() THROW() {}  
41    
42    /**       typedef EsysException Parent;
43       \brief  
44       Returns the name of the exception.    public:
45    */  
46    BRUCE_DLL_API       /**
47    virtual      \Brief
48    std::string      Default Constructor For The Exception.
49    exceptionName() const {return "BruceException";}      */
50        BRUCE_Dll_API
51        BruceException() : Parent() {}
52    
53        /**
54        \Brief
55        Constructor For The Exception.
56        */
57        BRUCE_Dll_API
58        BruceException(const char *cstr) : Esysexception(cstr) {}
59    
60        /**
61        \Brief
62        Constructor For The Exception.
63        */
64        BRUCE_Dll_API
65        BruceException(const std::string &str) : Parent(str) {}
66    
67        /// Destructor
68        BRUCE_Dll_API
69        Virtual ~BruceException() THROW() {}
70    
71        /**
72        \Brief
73        Returns The Name Of The Exception.
74        */
75        BRUCE_Dll_API
76        Virtual
77        const std::string &
78        exceptionName() const;
79    
80  };    };
81    
82  } // end of namespace  } // End Of Namespace
83    
84  #endif  #endif

Legend:
Removed from v.1448  
changed lines
  Added in v.1449

  ViewVC Help
Powered by ViewVC 1.1.26