/[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

revision 757 by woo409, Mon Jun 26 13:12:56 2006 UTC revision 1385 by trankine, Fri Jan 11 07:33:30 2008 UTC
# Line 1  Line 1 
1  /*  
2   ******************************************************************************  /* $Id$ */
3   *                                                                            *  
4   *       COPYRIGHT  ACcESS 2004 -  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  #include "system_dep.h"  #include "system_dep.h"
17  #include "esysExceptionTranslator.h"  #include "esysExceptionTranslator.h"
18  #include <iostream>  #include <iostream>
# Line 19  using namespace std; Line 21  using namespace std;
21    
22  namespace esysUtils {  namespace esysUtils {
23    
24  void esysExceptionTranslator(EsysException const& e)  void esysExceptionTranslator(const EsysException & e)
25    {    {
26          cout << "translated!\n";
27      PyErr_SetString(PyExc_RuntimeError,e.what());      PyErr_SetString(PyExc_RuntimeError,e.what());
28    }    }
29    

Legend:
Removed from v.757  
changed lines
  Added in v.1385

  ViewVC Help
Powered by ViewVC 1.1.26