/[escript]/trunk/finley/src/CPPAdapter/FinleyError.cpp
ViewVC logotype

Contents of /trunk/finley/src/CPPAdapter/FinleyError.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 472 - (show annotations)
Fri Jan 27 01:50:59 2006 UTC (12 years, 11 months ago) by jgs
File size: 1741 byte(s)
rationalise all #includes

1 /*
2 ******************************************************************************
3 * *
4 * COPYRIGHT ACcESS 2004 - All Rights Reserved *
5 * *
6 * This software is the property of ACcESS. No part of this code *
7 * may be copied in any form or by any means without the expressed written *
8 * consent of ACcESS. Copying, use or modification of this software *
9 * by any unauthorised person is illegal unless that person has a software *
10 * license agreement with ACcESS. *
11 * *
12 ******************************************************************************
13 */
14
15 #include "FinleyError.h"
16
17 namespace finley {
18
19 void setFinleyError(Finley_ErrorCodeType errorCode,
20 const std::string& errMess)
21 {
22 Finley_setError(errorCode,(char*)(errMess.c_str()));
23 }
24
25 void checkFinleyError()
26 {
27 if (Finley_noError()) {
28 return;
29 } else {
30 //
31 // reset the error code to no error otherwise the next call to
32 // this function may resurrect a previous error
33 Finley_resetError();
34 throw FinleyAdapterException(Finley_getErrorMessage());
35 }
36 }
37 void checkPasoError()
38 {
39 if (Paso_noError()) {
40 return;
41 } else {
42 //
43 // reset the error code to no error otherwise the next call to
44 // this function may resurrect a previous error
45 Paso_resetError();
46 throw FinleyAdapterException(Paso_getErrorMessage());
47 }
48 }
49
50 } // end of namespace

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26