core / com.schibsted.account.model.error / NetworkError

NetworkError

data class NetworkError : InternalError

Constructors

<init>

NetworkError(code: Int, type: String, description: String, endpoint: String)

Properties

code

val code: Int

description

val description: String

endpoint

val endpoint: String

type

val type: String

Functions

toClientError

fun toClientError(): ClientError

Companion Object Functions

fromResponse

fun <T> fromResponse(response: Response<T>): NetworkError