Trap information

When a run-time error is detected, the system generates a numbered trap. The information included with the trap can be used to diagnose the problem. Especially useful is the module and procedure name and PC location where the trap occured. This allows a programmer to find the exact location in the source code using the \f option of the compiler. Here is an example of a trap viewer:

TRAP 7  Index out of range 
TestHalt2.Index  PC =   352 
  a = "" 
  i = 3 
Oberon.Call  PC =  4646 

It can be interpreted as follows:

Trap numbers fall into the following ranges: More detailed information about specific traps:
26 Aug 2001 - Copyright © 2001 ETH Zürich. All rights reserved.
E-Mail: oberon-web at