HTBasic Help
×
Menu
Index

CAUSE ERROR

Simulates a specified error.
 
 CAUSE ERROR error-number
 
Usage:
CAUSE ERROR Err
IF Testing THEN CAUSE ERROR 80
 
Example:
 
Description:
When the statement is executed, it is as though the error specified actually occurred and the normal error related functions are affected: ERRL, ERRLN, ERRM$ and ERRN. CAUSE ERROR is useful in debugging error handlers.
 
See Also: