Arbortext Command Language > Hooks > formaterrorhook
  
formaterrorhook
formaterrorhook
 
Function prototype:
hook (errorFlag, pageNumber, passNumber, message)
Synopsis
Use with:
add_hook(hookname, func)
remove_hook(hookname, func)
where hookname is formaterrorhook.
This hook is called if formatting produces an error. If the ACL set formatwarnings option is set to off, this function will not be called for format warning messages.
Arguments
errorFlag is 1 for an error and 0 for a warning.
pageNumber is the page being generated when the error or warning is detected, or is -1 if no page number can be determined.
passNumber is the formatting pass number. The first pass is number zero.
message is the actual error message.