QBittorrentException

A generic exception thrown by every API method in QBittorrentClient, simplifying error handling.

If a response is set, the error occurred because the server responded with an error. If no response is provided, the cause will contain an exception that was produced before executing the request.

Constructors

Link copied to clipboard
fun QBittorrentException(response: HttpResponse, body: String)
Link copied to clipboard

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open override val message: String
Link copied to clipboard
var response: HttpResponse? = null