2
/*******************************************************
4
* Copyright (c) 2003-2010 by University of Queensland
5
* Earth Systems Science Computational Center (ESSCC)
6
* http://www.uq.edu.au/esscc
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
12
*******************************************************/
18
#include "DudleyError.h"
23
void setDudleyError(Dudley_ErrorCodeType errorCode,
24
const std::string& errMess)
26
Dudley_setError(errorCode,(__const char*)(errMess.c_str()));
29
void checkDudleyError()
31
if (Dudley_noError()) {
35
// reset the error code to no error otherwise the next call to
36
// this function may resurrect a previous error
38
throw DudleyAdapterException(Dudley_getErrorMessage());
47
// reset the error code to no error otherwise the next call to
48
// this function may resurrect a previous error
50
throw DudleyAdapterException(Esys_getErrorMessage());