DhtProtocolException

class DhtProtocolException(val code: Int, message: String) : Exception

Raised when a DHT peer answers a query with a KRPC error (y:"e", e:[code, msg]), the read side of incoming_error. Carries the numeric code (201 generic, 203 protocol, 204 method-unknown, …) and the human-readable message.

Constructors

Link copied to clipboard
constructor(code: Int, message: String)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
val code: Int

KRPC error code from the e list.

Link copied to clipboard
expect open val message: String?