MercadoPagoCheckoutError

SDK error following the 5-audience pattern:

  1. End users - localized messages

  2. Runtime code - pattern matching via sealed class

  3. Developers - debug descriptions

  4. Monitoring - stable error codes

  5. SDK consumers - clean API without internal visibility

Inheritors

Types

Link copied to clipboard
data class ConfigurationError(val code: ErrorCode, val messageError: String, val localized: String) : MercadoPagoCheckoutError

SDK configuration or initialization errors.

Link copied to clipboard
data class NetworkError(val code: ErrorCode, val messageError: String, val localized: String, val throwable: Throwable?) : MercadoPagoCheckoutError

Network-related errors such as connection failures, timeouts, or unavailability.

Link copied to clipboard
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.

Link copied to clipboard
data class UnknownError(val code: ErrorCode, val messageError: String, val localized: String, val throwable: Throwable?) : MercadoPagoCheckoutError

Unknown or unexpected errors.

Properties

Link copied to clipboard
open val cause: Throwable?
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
open val message: String?