SearchRequestException

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

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

Constructors

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

Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(p0: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
getLocalizedMessage
Link copied to clipboard
open fun getLocalizedMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
initCause
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
isClientError
Link copied to clipboard
fun isClientError(): Boolean
Indicates, whether HTTP code is in [400..500) range.
isServerError
Link copied to clipboard
fun isServerError(): Boolean
Indicates, whether HTTP code is in [500..600) range.
printStackTrace
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
setStackTrace
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)

Properties

cause
Link copied to clipboard
open override val cause: Exception? = null
the cause of this exception.
code
Link copied to clipboard
val code: Int
the HTTP status code.
message
Link copied to clipboard
open override val message: String
the HTTP status message.