MindboxError

sealed class MindboxError

A class for representing Mindbox error. Used in operations.

Inheritors

Types

Link copied to clipboard
data class InternalServer(val statusCode: Int, val status: String, val errorMessage: String?, val errorId: String?, val httpStatusCode: Int?) : MindboxError
Link copied to clipboard
data class Protocol(val statusCode: Int, val status: String, val errorMessage: String?, val errorId: String?, val httpStatusCode: Int?) : MindboxError
Link copied to clipboard
data class Unknown(val throwable: Throwable? = null) : MindboxError
Link copied to clipboard
data class UnknownServer(val statusCode: Int? = null, val status: String? = null, val errorMessage: String? = null, val errorId: String? = null, val httpStatusCode: Int? = null) : MindboxError
Link copied to clipboard
data class Validation(val statusCode: Int, val status: String, val validationMessages: List<ValidationMessage>) : MindboxError

Properties

Link copied to clipboard
open val statusCode: Int?

Functions

Link copied to clipboard
fun toJson(): String