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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 jgs 82 /*
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 jgs 203 #include "FinleyError.h"
16 jgs 82
17     namespace finley {
18    
19 jgs 150 void setFinleyError(Finley_ErrorCodeType errorCode,
20 jgs 82 const std::string& errMess)
21     {
22 jgs 150 Finley_setError(errorCode,(char*)(errMess.c_str()));
23 jgs 82 }
24    
25     void checkFinleyError()
26     {
27 jgs 150 if (Finley_noError()) {
28 jgs 82 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 jgs 150 Finley_resetError();
34     throw FinleyAdapterException(Finley_getErrorMessage());
35 jgs 82 }
36     }
37 jgs 150 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 jgs 82
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