Class TrackerErrorAlert

All Implemented Interfaces:
Alert<tracker_error_alert>

public final class TrackerErrorAlert extends TrackerAlert<tracker_error_alert>
This alert is generated on tracker time outs, premature disconnects, invalid response or a HTTP response other than "200 OK". From the alert you can get the handle to the torrent the tracker belongs to.

The timesInRow() member says how many times in a row this tracker has failed. error() contains the code returned from the HTTP server. 401 means the tracker needs authentication, 404 means not found etc. If the tracker timed out, the code will be set to 0.

  • Method Details

    • timesInRow

      public int timesInRow()
    • error

      public ErrorCode error()
    • errorMessage

      public String errorMessage()
      The message associated with this error.
      Returns:
      the error message.