/[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 4820 by jfenwick, Thu Feb 6 06:12:20 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 23  using namespace std; Line 23  using namespace std;
23    
24  namespace esysUtils {  namespace esysUtils {
25    
26  void esysExceptionTranslator(EsysException const& e)  void RuntimeErrorTranslator(EsysException const& e)
27    {    {
28      PyErr_SetString(PyExc_RuntimeError,e.what());      PyErr_SetString(PyExc_RuntimeError,e.what());
29    }    }
30    
31    void ValueErrorTranslator(EsysException const& e)
32    {
33        PyErr_SetString(PyExc_ValueError,e.what());
34    }
35    
36  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.4820  
changed lines
  Added in v.4821

  ViewVC Help
Powered by ViewVC 1.1.26