SearchRequestException

class SearchRequestException(val message: String, val code: Int, val cause: Exception? = null) : RuntimeException

Exception thrown when an HTTP response was not successful, i.e. if the code is not in [200..300).

Constructors

Link copied to clipboard
fun SearchRequestException(message: String, code: Int, cause: Exception? = null)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates, whether HTTP code is in [400..500) range.

Link copied to clipboard

Indicates, whether HTTP code is in [500..600) range.

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
open override val cause: Exception? = null

the cause of this exception.

Link copied to clipboard
val code: Int

the HTTP status code.

Link copied to clipboard
open override val message: String

the HTTP status message.