StorageError
public enum StorageError
extension StorageError: AmplifyError
Errors thrown by implementations of the StorageCategoryPlugin protocol.
- Tag: StorageError
-
Surfaced when a storage operation is attempted for either a file or a key to which the current user does not have access.
- Tag: StorageError.accessDenied
Declaration
Swift
case accessDenied(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Surfaced when a storage operation is unable to resolve the current user.
- Tag: StorageError.authError
Declaration
Swift
case authError(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Surfaced when a storage plugin encounters an error during its configuration.
- Tag: StorageError.configuration
Declaration
Swift
case configuration(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Surfaced when a storage operation encounters an HTTP status code it considers an error.
- Tag: StorageError.httpStatusError
Declaration
Swift
case httpStatusError(Int, RecoverySuggestion, _: Error? = nil)
-
Surfaced when a storage operation encounters an HTTP status code it considers an error.
- Tag: StorageError.keyNotFound
Declaration
Swift
case keyNotFound(Key, ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Surfaced when a storage operation is unable to find a local file, usually when attempting to upload.
- Tag: StorageError.localFileNotFound
Declaration
Swift
case localFileNotFound(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Surfaced when a storage operation encounters an unexpected server-side error.
- Tag: StorageError.service
Declaration
Swift
case service(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Surfaced when a storage operation encounters an general unexpected error.
- Tag: StorageError.unknown
Declaration
Swift
case unknown(ErrorDescription, _: Error? = nil)
-
Surfaced when a storage operation encounters invalid input.
- Tag: StorageError.validation
Declaration
Swift
case validation(Field, ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Declaration
Swift
public var errorDescription: ErrorDescription { get }
-
Declaration
Swift
public var recoverySuggestion: RecoverySuggestion { get }
-
Declaration
Swift
public var underlyingError: Error? { get }
-
Declaration
Swift
public init( errorDescription: ErrorDescription = "An unknown error occurred", recoverySuggestion: RecoverySuggestion = "(Ignored)", error: Error )