1 |
|
2 |
/******************************************************* |
3 |
* |
4 |
* Copyright (c) 2003-2008 by University of Queensland |
5 |
* Earth Systems Science Computational Center (ESSCC) |
6 |
* http://www.uq.edu.au/esscc |
7 |
* |
8 |
* Primary Business: Queensland, Australia |
9 |
* Licensed under the Open Software License version 3.0 |
10 |
* http://www.opensource.org/licenses/osl-3.0.php |
11 |
* |
12 |
*******************************************************/ |
13 |
|
14 |
|
15 |
#include "system_dep.h" |
16 |
#include "esysExceptionTranslator.h" |
17 |
#include <iostream> |
18 |
|
19 |
using namespace std; |
20 |
|
21 |
namespace esysUtils { |
22 |
|
23 |
void esysExceptionTranslator(EsysException const& e) |
24 |
{ |
25 |
PyErr_SetString(PyExc_RuntimeError,e.what()); |
26 |
} |
27 |
|
28 |
} // end of namespace |