Types

Link copied to clipboard
Link copied to clipboard
data class GenericError(val cause: Throwable) : KaliumException

Generic errors e.g. Serialization errors

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

http error 400 .. 499

Link copied to clipboard
data class NoNetwork(val networkState: NetworkState = NetworkState.NotConnected) : KaliumException
Link copied to clipboard
data class RedirectError(val errorResponse: GenericAPIErrorResponse) : KaliumException

http error 300 .. 399

Link copied to clipboard
data class ServerError(val errorResponse: GenericAPIErrorResponse) : KaliumException

http error 500 .. 599

Link copied to clipboard
data class Unauthorized(val errorCode: Int) : KaliumException

Properties

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

Functions

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.