Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Faxual II for CA-Clipper - <b>error handling - overview</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error Handling - Overview

    Faxual II errors may be reported in one of three ways, depending on the
    error type, and which function call or subsystem detected the error.

    .   The error may be reported through the Clipper error system.  We call
        this "throwing" an error.  The default error handler will display an
        error message (usually in a big red box) and terminate the program.
        See the articles on the Error class and ERRORBLOCK function in the
        CA-Clipper Reference Guide for more information.

    .   The function may return a value indicating that it did not complete
        successfully.  We call this "failing" or "returning an error".  You
        can retrieve an error code giving the reason for failure by calling
        the F2Error() function.

    .   Errors during background fax operations are indicated by storing an
        error code in the fax device status block.  You can retrieve the
        status block using FaxStatus(), and the error code from the status
        block with StError().

    Most functions throw errors through the Clipper error system.  The ones
    that do not are explained in the function reference.

    In Clipper 5.01, we do not have access to the error system interface, so
    errors are not thrown.  In that version, all functions that would throw
    errors return error codes in F2Error(), but it may not be possible to
    tell from the function return value that an error occurred.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson