Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

ilAddTopLevelErrorHandler

ilAddTopLevelErrorHandler( 
[ s_handler ] 
) 
=> t

Description

Registers a new top-level error-handler. This error-handler is called after stacktrace, when an error occurs. If an error-handler already exists, the function displays a warning message.

Arguments

s_handler

A SKILL function that accepts 0 or 1 argument. When an error is raised, the error message string is passed to the handler.

Value Returned

t

The error-handler is successfully registered.

Examples

To define an error handler and then register it:

defun(myhandler(x)
printf("TOP LEVEL ERROR HANDLER : %L" x) );
ilAddTopLevelErrorHandler('myHandler)

Related Topics

Debug Functions


Return to top
 ⠀
X