Failure

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

A model that represents a failure response from the API.

Constructors

Link copied to clipboard
constructor(error: ForageError)

Properties

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

Functions

Link copied to clipboard
open override fun toString(): String