/[escript]/trunk/esysUtils/src/esysExceptionTranslator.cpp
ViewVC logotype

Diff of /trunk/esysUtils/src/esysExceptionTranslator.cpp

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

trunk/esys2/esysUtils/src/esysExceptionTranslator.cpp revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC trunk/esysUtils/src/esysExceptionTranslator.cpp revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
 /*  
  ******************************************************************************  
  *                                                                            *  
  *       COPYRIGHT  ACcESS 2004 -  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.                                             *  
  *                                                                            *  
  ******************************************************************************  
 */  
1    
2  #include "esysUtils/esysExceptionTranslator.h"  /* $Id$ */
3    
4    /*******************************************************
5     *
6     *           Copyright 2003-2007 by ACceSS MNRF
7     *       Copyright 2007 by University of Queensland
8     *
9     *                http://esscc.uq.edu.au
10     *        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    #include "system_dep.h"
17    #include "esysExceptionTranslator.h"
18  #include <iostream>  #include <iostream>
19    
20  using namespace std;  using namespace std;
21    
22  namespace esysUtils {  namespace esysUtils {
23    
24    void esysExceptionTranslator(EsysException const& e)  void esysExceptionTranslator(EsysException const& e)
25    {    {
26      PyErr_SetString(PyExc_StandardError,e.what());      PyErr_SetString(PyExc_RuntimeError,e.what());
27    }    }
28    
29  }  // end of namespace  }  // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26