ErrorResponse

data class ErrorResponse(var code: String, var message: String, var error: String? = null)

Represents an error response returned by the MTN MOMO API.

Constructors

Link copied to clipboard
constructor(code: String, message: String, error: String? = null)

Properties

Link copied to clipboard

The error code returned by the API (maps to io.rekast.sdk.utils.ApiErrorResponses).

Link copied to clipboard

The raw error identifier string from the API. Optional — many MoMo error bodies contain only code and message.

Link copied to clipboard

A human-readable description of the error.