ErrorMessage

class ErrorMessage(val transactionId: ByteArray, val code: Int, val message: String) : DhtMessage

A KRPC error (y == "e"): {t, y:"e", e:[code, message]}, built by libtorrent's incoming_error.

Constructors

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

Properties

Link copied to clipboard
val code: Int

Numeric error code (201 generic, 203 protocol, 205 message-too-big, …).

Link copied to clipboard

Human-readable error message.

Link copied to clipboard
open override val messageType: Char

The single character carried in y: 'q', 'r' or 'e'.

Link copied to clipboard
open override val transactionId: ByteArray

The transaction id (t): opaque bytes the response echoes back from the query.