Error

sealed class Error : ProviderResult

The data acquired when an error occurred during a torrentsearch.TorrentProvider query.

Inheritors

Types

Link copied to clipboard
data class InvalidQueryError(val providerName: String, val message: String?) : ProviderResult.Error

Indicates an error when creating the query details for the provider's API. This usually occurs when the query string or id search method is not available for the provider.

Link copied to clipboard
data class RequestError(val providerName: String, val httpStatusCode: HttpStatusCode?, val body: String?, val message: String? = body) : ProviderResult.Error

Indicates a network error when attempting a query.

Link copied to clipboard
data class UnknownError(val providerName: String, val message: String?, val exception: Throwable?) : ProviderResult.Error

Indicates an unhandled error occurred.

Properties

Link copied to clipboard
abstract val message: String?
Link copied to clipboard
abstract val providerName: String

The name of the provider which produced this result.