Class PeerErrorAlert

All Implemented Interfaces:
Alert<peer_error_alert>

public final class PeerErrorAlert extends PeerAlert<peer_error_alert>
This alert is generated when a peer sends invalid data over the peer-peer protocol. The peer will be disconnected, but you get its ip address from the alert, to identify it.
  • Method Details

    • operation

      public Operation operation()
      Returns:
      the operation.
    • error

      public ErrorCode error()
      Tells you what error caused this alert.
      Returns:
      the error