Types

Link copied to clipboard
Link copied to clipboard
data class FederationConflictException(val errorResponse: <Error class: unknown class>) : KaliumException
Link copied to clipboard
data class FederationError(val errorResponse: <Error class: unknown class>) : KaliumException

Federation errors types

Link copied to clipboard
data class FederationUnreachableException(val errorResponse: <Error class: unknown class>) : KaliumException
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: <Error class: unknown class>) : KaliumException

http error 400 .. 499

Link copied to clipboard
data class NoNetwork(val networkState: <Error class: unknown class> = NetworkState.NotConnected) : KaliumException
Link copied to clipboard
data class RedirectError(val errorResponse: <Error class: unknown class>) : KaliumException

http error 300 .. 399

Link copied to clipboard
data class ServerError(val errorResponse: <Error class: unknown class>) : KaliumException

http error 500 .. 599

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