Failure

data class Failure(val errors: List<ForageError>) : ForageApiResponse<Nothing>

A model that represents a failure response from the API.

Constructors

Link copied to clipboard
constructor(errors: List<ForageError>)

Properties

Link copied to clipboard

A list of ForageError instances that you can unpack to programmatically handle the error and display the appropriate customer-facing message.