

Error Handling › Handling Runtime Errors
Handling Runtime Errors
You cannot prevent certain runtime error conditions, but you can detect them during execution. CA Ideal provides two facilities for handling runtime errors:
- The error procedure executes automatically when an error is encountered. You can use the default error procedure that CA Ideal provides or you can code your own error procedure. However, you can include only one error procedure in any program.
- The WHEN ERROR clause in the FOR construct executes automatically when a dataview error ($ERROR-CLASS of DVW) is encountered while processing the FOR construct.
The $ERROR functions are only available in the scope of the error procedure or the WHEN ERROR clause.
Copyright © 2015 CA Technologies.
All rights reserved.
 
|
|