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

Defining an Error Handler

The syntax of the on error statement is:

An on error statement appears immediately after the end statement of the block to which it applies. For example:


An on error statement executes if and only if G2 signals an error within the scope of the statement, or a signal statement executes within the scope of the statement. Otherwise, control skips over the on error block and continues sequentially.

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

Copyright © 1997 Gensym Corporation, Inc.