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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4821 - (show annotations)
Tue Apr 1 04:58:33 2014 UTC (5 years, 4 months ago) by sshaw
File size: 959 byte(s)
moved SolverOptions to c++, split into SolverOptions for the options and SolverBuddy as the state as a precursor to per-pde solving... does break some use cases (e.g. pde.getSolverOptions().DIRECT will now fail, new value access is with SolverOptions.DIRECT), examples and documentation updated to match
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17
18 #include "system_dep.h"
19 #include "esysExceptionTranslator.h"
20 #include <iostream>
21
22 using namespace std;
23
24 namespace esysUtils {
25
26 void RuntimeErrorTranslator(EsysException const& e)
27 {
28 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

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26