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

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

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

trunk/esys2/escript/src/Data/DataException.h revision 108 by jgs, Thu Jan 27 06:21:59 2005 UTC temp/escript/src/DataException.h revision 1387 by trankine, Fri Jan 11 07:45:26 2008 UTC
# Line 1  Line 1 
1  /*  
2   *****************************************************************************  /* $Id$ */
3   *                                                                           *  
4   *       COPYRIGHT  ACcESS  -  All Rights Reserved                           *  /*******************************************************
5   *                                                                           *   *
6   * This software is the property of ACcESS. No part of this code             *   *           Copyright 2003-2007 by ACceSS MNRF
7   * may be copied in any form or by any means without the expressed written   *   *       Copyright 2007 by University of Queensland
8   * consent of ACcESS.  Copying, use or modification of this software         *   *
9   * by any unauthorised person is illegal unless that person has a software   *   *                http://esscc.uq.edu.au
10   * license agreement with ACcESS.                                            *   *        Primary Business: Queensland, Australia
11   *                                                                           *   *  Licensed under the Open Software License version 3.0
12   *****************************************************************************   *     http://www.opensource.org/licenses/osl-3.0.php
13  */   *
14                                                                               *******************************************************/
15    
16  #if !defined  escript_DataException_20040324_H  #if !defined  escript_DataException_20040324_H
17  #define escript_DataException_20040324_H  #define escript_DataException_20040324_H
18    #include "system_dep.h"
19    
20  #include "esysUtils/EsysException.h"  #include "esysUtils/EsysException.h"
21    
22  #include <string>  #include <string>
23    
24  namespace escript {  namespace escript {
# Line 35  class DataException:public esysUtils::Es Line 38  class DataException:public esysUtils::Es
38       \brief       \brief
39       Default constructor for the exception.       Default constructor for the exception.
40    */    */
41      ESCRIPT_DLL_API
42    DataException() : esysUtils::EsysException() {}    DataException() : esysUtils::EsysException() {}
43    /**    /**
44       \brief       \brief
45       Constructor for the exception.       Constructor for the exception.
46    */    */
47      ESCRIPT_DLL_API
48    DataException(const char *cstr) : esysUtils::EsysException(cstr) {}    DataException(const char *cstr) : esysUtils::EsysException(cstr) {}
49    /**    /**
50       \brief       \brief
51       Constructor for the exception.       Constructor for the exception.
52    */    */
53      ESCRIPT_DLL_API
54    DataException(const std::string &str) : esysUtils::EsysException(str) {}    DataException(const std::string &str) : esysUtils::EsysException(str) {}
55    
56      /// Destructor
57      ESCRIPT_DLL_API
58      virtual ~DataException() throw() {}
59    
60    /**    /**
61       \brief       \brief
62       Returns the name of the exception.       Returns the name of the exception.
63    */    */
64      ESCRIPT_DLL_API
65    virtual std::string exceptionName() const {return "DataException";}    virtual std::string exceptionName() const {return "DataException";}
66  };  };
67    

Legend:
Removed from v.108  
changed lines
  Added in v.1387

  ViewVC Help
Powered by ViewVC 1.1.26