escript  Revision_Unversioneddirectory
esysExceptionTranslator.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
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 #if !defined esysUtils_esysExceptionTranslator_20040419_H
19 #define esysUtils_esysExceptionTranslator_20040419_H
20 #include "system_dep.h"
21 
22 #include "EsysException.h"
23 
24 #include "boost/python/errors.hpp"
25 
26 #include <iostream>
27 
28 namespace esysUtils {
34  void RuntimeErrorTranslator(EsysException const& e);
35 
41  void ValueErrorTranslator(EsysException const& e);
42 } // end of namespace
43 
44 #endif
#define ESYSUTILS_DLL_API
Definition: esysUtils/src/system_dep.h:31
void RuntimeErrorTranslator(EsysException const &e)
Function which translates an EsysException into a python RuntimeError.
Definition: esysExceptionTranslator.cpp:27
Definition: Esys_MPI.cpp:32
void ValueErrorTranslator(EsysException const &e)
Function which translates an EsysException into a python ValueError.
Definition: esysExceptionTranslator.cpp:32