TrackerFailure

class TrackerFailure(val reason: String) : Exception

Thrown when a tracker returns a failure reason member (BEP-3), the typed counterpart of libtorrent setting resp.failure_reason and raising the errors::tracker_failure code. Carries both the human-readable reason text the tracker sent and the corresponding error code (LibtorrentError.TRACKER_FAILURE), so a caller can surface the message or branch on the code uniformly with the plain TorrentExceptions this codec also throws.

(It is a distinct Exception rather than a subclass of TorrentException, which the core declares final; the error property gives the same code access.)

Constructors

Link copied to clipboard
constructor(reason: String)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
expect open val message: String?
Link copied to clipboard

the failure text the tracker sent.