CommonError

sealed class CommonError : ErrorS1SDK

CommonError is a sealed interface that represents the different common types of errors that can occur in different scenarios.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class InvalidInputData(val cause: String) : CommonError

InvalidInputData when the input data is not valid.

Link copied to clipboard
data class InvalidInputDataList(val cause: List<Pair<Int, String>>) : CommonError

InvalidInputDataList when the input data list is not valid.

Link copied to clipboard

NotFound when the requested data was not found.

Link copied to clipboard
data class Unknown(val cause: Throwable) : CommonError

Unknown when the server responded with an unknown error or the request failed for an unknown reason.