APIError
public enum APIError
extension APIError: AmplifyError
Errors specific to the API Category
-
Dictionary used to store additional information
Declaration
Swift
public typealias UserInfo = [String : Any]
-
Status code Int
Declaration
Swift
public typealias StatusCode = Int
-
An unknown error
Declaration
Swift
case unknown(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
The configuration for a particular API was invalid
Declaration
Swift
case invalidConfiguration(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
The URL in a request was invalid or missing
Declaration
Swift
case invalidURL(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
An in-process operation encountered a processing error
Declaration
Swift
case operationError(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
The category received an underlying error from network layer.
Declaration
Swift
case networkError(ErrorDescription, _: UserInfo? = nil, _: Error? = nil)
-
A non 2xx response from the service.
Declaration
Swift
case httpStatusError(StatusCode, HTTPURLResponse)
-
An error to encapsulate an error received by a dependent plugin
Declaration
Swift
case pluginError(AmplifyError)
-
Declaration
Swift
public init( errorDescription: ErrorDescription = "An unknown error occurred", recoverySuggestion: RecoverySuggestion = "See `underlyingError` for more details", error: Error )
-
Declaration
Swift
public var errorDescription: ErrorDescription { get }
-
Declaration
Swift
public var recoverySuggestion: RecoverySuggestion { get }
-
Declaration
Swift
public var underlyingError: Error? { get }