<< Previous | Next >>

exception

int exception( int errCode );

Description

This function is called by Rabbit libraries when a runtime error occurs. It puts information relevant to the runtime error on the stack and calls the default runtime error handler pointed to by the ERROR_EXIT macro. To define your own error handler, see the defineErrorHandler() function.

When the error handler is called, the following information will be on the stack:

Location on Stack

Description

SP+0
Return address for error handler call
SP+2
Runtime error code
SP+4
(can be used for additional information)
SP+6
XPC when exception() was called (upper byte)
SP+8
Address where exception() was called from

Return value

Runtime error code passed to it.

Library

ERRORS.LIB

See also

defineErrorHandler


Dynamic C Functions << Previous | Next >> rabbit.com