| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (10 out of 13)

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:

  1. Deletes the error object.

  2. Aborts the construct within which the error occurred.

  3. 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.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (10 out of 13)

Copyright © 1997 Gensym Corporation, Inc.