InvalidRequestError

data class InvalidRequestError(val errorResponse: GenericAPIErrorResponse, val retryAfterSeconds: Int? = null) : KaliumException

http error 400 .. 499

Constructors

Link copied to clipboard
constructor(errorResponse: GenericAPIErrorResponse, retryAfterSeconds: Int? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
val errorResponse: GenericAPIErrorResponse
Link copied to clipboard
expect open val message: String?
Link copied to clipboard

Server-provided Retry-After delay in seconds; null when absent or invalid.

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
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
actual fun Throwable.isPlatformProxyFailure(): Boolean

CFNetwork reports a rejected SOCKS5 username/password as POSIX EAUTH, not as an HTTP 401.

expect fun Throwable.isPlatformProxyFailure(): Boolean

Recognizes platform error codes that cannot be identified by the JVM SOCKS exception message.

actual fun Throwable.isPlatformProxyFailure(): Boolean

Recognizes platform error codes that cannot be identified by the JVM SOCKS exception message.

actual fun Throwable.isPlatformProxyFailure(): Boolean

Recognizes platform error codes that cannot be identified by the JVM SOCKS exception message.

Link copied to clipboard
Link copied to clipboard