escript  Revision_
DudleyError.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 dudley_DudleyError_20040528_H
19 #define dudley_DudleyError_20040528_H
20 #include "system_dep.h"
21 
22 #include "dudley/Dudley.h"
23 
24 #include "DudleyAdapterException.h"
25 
26 #include <string>
27 
28 namespace dudley {
35  void setDudleyError(Dudley_ErrorCodeType errorCode,
36  const std::string& errMess);
37 
43  void checkDudleyError();
49  void checkPasoError();
50 } // end of namespace
51 #endif
void checkPasoError()
Convert a C paso error into a C++ exception.
Definition: DudleyError.cpp:41
void setDudleyError(Dudley_ErrorCodeType errorCode, const std::string &errMess)
Provide a C++ interface to the dudley C funcion of the same name. Needed because of constness problem...
Definition: DudleyError.cpp:23
void checkDudleyError()
Convert a C dudley error into a C++ exception.
Definition: DudleyError.cpp:29
#define DUDLEY_DLL_API
Definition: dudley/src/CPPAdapter/system_dep.h:29
Definition: DudleyAdapterException.h:24
Esys_ErrorCodeType
Definition: error.h:41