ApiException

# ApiException

sealed class ApiException : Exception

A class hierarchy that describes network issues.

# Inheritors

ExecutionError
ClientError
ServerError

# Types

Name Summary
ClientError
class ClientError(val clientErrorData: ClientErrorData? = null, val url: String = "", cause: Throwable? = null) : ApiException
The request response is a client error (4xx).
ExecutionError
class ExecutionError(val url: String = "", cause: Throwable? = null) : ApiException
Error while executing HTTP request.
ServerError
class ServerError(val url: String = "", cause: Throwable? = null) : ApiException
The request response is a server error (5xx).

# Properties

Name Summary
cause
open val cause: Throwable?
message
open val message: String?
url
val url: String

# Functions

Name Summary
addSuppressed
fun addSuppressed(p0: Throwable)
fillInStackTrace
open fun fillInStackTrace(): Throwable
getLocalizedMessage
open fun getLocalizedMessage(): String
getStackTrace
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
fun getSuppressed(): Array<Throwable>
initCause
open fun initCause(p0: Throwable): Throwable
printStackTrace
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
setStackTrace
open fun setStackTrace(p0: Array<StackTraceElement>)
toString
open override fun toString(): String