Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim
Interface Simulator.ExceptionWatch

All Known Implementing Classes:
  GDBServer.GDBMonitor.ExceptionWatch, MulticastExceptionWatch

Enclosing interface:
  Simulator

public static interface Simulator.ExceptionWatch

The `Simulator.ExceptionWatch` interface allows for monitoring of exceptional conditions in the machine state. Events such as memory access violations, (insert other exception types here), may be caught and handled.

Method Summary
`void` | `invalidRead(java.lang.String segment, int address)` The `invalidRead()` method is invoked when an instruction attempts to read from an out-of-bounds memory location.
`void` | `invalidWrite(java.lang.String segment, int address, byte value)` The `invalidWrite()` method is invoked when an instruction attempts to write to a read-only or out-of-bounds memory location.

Method Detail

### invalidRead

    public void invalidRead(java.lang.String segment,
                            int address)

  The `invalidRead()` method is invoked when an instruction attempts to read from an out-of-bounds memory location.

  Parameters:
    `segment` - The segment the instruction attempted to read from.
    `address` - The address within the segment of the attempted read.

### invalidWrite

    public void invalidWrite(java.lang.String segment,
                             int address,
                             byte value)

  The `invalidWrite()` method is invoked when an instruction attempts to write to a read-only or out-of-bounds memory location.

  Parameters:
    `segment` - The segment the instruction attempted to write into.
    `address` - The address within the segment of the disallowed write.
    `value` - The value the instruction attempted to write.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD