Class AddTorrentAlert

All Implemented Interfaces:
Alert<add_torrent_alert>

public final class AddTorrentAlert extends TorrentAlert<add_torrent_alert>
This alert is always posted when a torrent was attempted to be added and contains the return status of the add operation. The torrent handle of the new torrent can be found in the TorrentAlert.handle() member. If adding the torrent failed, error() contains the error code.
  • Method Details

    • params

      public AddTorrentParams params()
      A copy of the parameters used when adding the torrent, it can be used to identify which invocation to SessionHandle.asyncAddTorrent(AddTorrentParams) caused this alert.
      Returns:
      the params used to add the torrent
    • error

      public ErrorCode error()
      Set to the error, if one occurred while adding the torrent.
      Returns:
      the error