Previous: , Up: The Error Library   [Index]


13.11.2 Error Trapping Functions

trap

integer trap(object o, &...);

is zero if the function indicated by o called with the unnamed arguments of ‘trap’ as arguments executed successfully, non zero otherwise

trap_d

integer trap_d(text &e, object o, &...);

is zero if the function indicated by o called with the unnamed arguments executed successfully, non zero otherwise. e is set to the error report if any was issued and not modified otherwise.

trap_q

integer trap_q(object o, &...);

same as ‘trap’, only with error reporting suppressed

wrap

integer wrap(&, object o, &...);

is zero if the function indicated by o called with the consequent arguments of ‘wrap’ as arguments executed successfully, non zero otherwise. The first argument is set to the return of the executed function.

wrap_d

integer wrap_d(text &e, &, object o, &...);

is zero if the function indicated by o called with the consequent arguments executed successfully, non zero otherwise. The second argument is set to the return of the executed function. e is set to the error report if any was issued and not modified otherwise.

wrap_q

integer wrap_q(&, object o, &...);

same as ‘wrap’, only with error reporting suppressed