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

## org.mpisws.p2p.transport
Interface ErrorHandler<Identifier>

Type Parameters:
  `Identifier` - the type of identifier at this layer
  `E` - the types of exceptions to expect

All Known Implementing Classes:
  DefaultErrorHandler

    public interface ErrorHandler<Identifier>

Notified when there is a problem not related to an outgoing message/socket, or when a callback isn't provided for a message.

Author:
  Jeff Hoye

Method Summary
`void` | `receivedException(Identifier i, java.lang.Throwable error)` We got an exception.
`void` | `receivedUnexpectedData(Identifier i, byte[] bytes, int location, java.util.Map<java.lang.String,java.lang.Object> options)`

Method Detail

### receivedUnexpectedData

    void receivedUnexpectedData(Identifier i,
                                byte[] bytes,
                                int location,
                                java.util.Map<java.lang.String,java.lang.Object> options)

  Parameters:
    `i` - the sender of the message (as can best be determined)
    `bytes` - the entire message/socket header
    `location` - the location in the bytes that is unexpected

### receivedException

    void receivedException(Identifier i,
                           java.lang.Throwable error)

  We got an exception.

  Parameters:
    `i` - the identifier responsible (if any)
    `error` - the exception

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

Copyright © 2001-2005 - Rice Pastry.