ServiceError

data class ServiceError(val code: ErrorCode, val messageError: String, val localized: String, val throwable: Throwable? = null) : MercadoPagoCheckoutError

Service-related errors including API failures, validation errors, and server-side issues.

Constructors

Link copied to clipboard
constructor(code: ErrorCode, messageError: String, localized: String, throwable: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The specific service error code.

Link copied to clipboard
val errorCause: String? = null

Optional cause of the error, if any.

Link copied to clipboard

Stable error code for monitoring and analytics.

Link copied to clipboard

The area/feature where the error occurred.

Link copied to clipboard

Human-readable error message.

Link copied to clipboard

The area/feature where the error occurred.

Link copied to clipboard
open val message: String?
Link copied to clipboard

Localized error message describing the service issue.

Link copied to clipboard
val throwable: Throwable? = null

The original exception that caused this error, if any.