Handling Non-Procedural Errors
Block error handlers can be defined only within procedures. When G2 signals an error in any context other than a procedure, it invokes the default error handler, passing it a transient g2-error object whose Error-description attribute describes the error.
The system-defined default error handler posts to the Operator Logbook a message similar to that in the preceding example, then:
- Deletes the error object.
- Aborts the construct within which the error occurred.
- Proceeds with the next scheduled task.
If the error occurred within the simulator, G2 halts the simulator.
The G2 Simulator is a superseded capability. For more information, see Appendix F, Superseded Practices.
Copyright © 1997 Gensym Corporation, Inc.