ForageErrorObj
@available(*, deprecated, renamed: "ForageError")
public struct ForageErrorObj : Codable
Represents a detailed error object returned by the Forage API. Provides additional context about the HTTP status, error code, and developer-facing message. Learn more about SDK errors
-
The HTTP status that the Forage API returns in response to the request.
Declaration
Swift
public let httpStatusCode: Int -
A short string that helps identify the cause of the error. Learn more about SDK error codes
Example: ‘ebt_error_55’ signifies that a user entered an invalid EBT Card PIN
Declaration
Swift
public let code: String -
A developer-facing description of the error.
Declaration
Swift
public let message: String -
Additional details about the error, included for your convenience. Not nil when details are available, e.g. when the error code is ebt_error_51
Declaration
Swift
public let details: ForageErrorDetails? -
Declaration
Swift
public init(from decoder: Decoder) throws