Class ScrapeFailedAlert

All Implemented Interfaces:
Alert<scrape_failed_alert>

public final class ScrapeFailedAlert extends TrackerAlert<scrape_failed_alert>
If a scrape request fails, this alert is generated. This might be due to the tracker timing out, refusing connection or returning an http response code indicating an error.
  • Constructor Details

  • Method Details

    • error

      public ErrorCode error()
      The error itself. This may indicate that the tracker sent an error message (``error::tracker_failure``), in which case it can be retrieved by calling errorMessage().
      Returns:
    • errorMessage

      public String errorMessage()
      If the error indicates there is an associated message, this returns that message. Otherwise and empty string.
      Returns: