Contents

error

The error that caused the job to fail.

Declaration

var error: (any Error)? { get }

Mentioned in

Return Value

An error object describing the failure, or nil if the job has not failed.

Discussion

This property is populated when the job reaches the PHAssetResourceUploadJobStateFailed state. It provides detailed information about why the upload failed, including network errors, server errors, or client-side errors.

See Also

Inspecting a job