Język

FileOperationErrorCode Enum

Definition

public enum FileOperationErrorCode
type FileOperationErrorCode = 
Inheritance
FileOperationErrorCode

Fields

Name Value Description
None -1

Successful operation.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_NONE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Unknown 0

An unknown error.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_UNKNOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Busy 1

The system is too busy to handle the request.

This error is transient. Applications should consider retrying the operation after a short delay, potentially using an exponential backoff strategy.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_BUSY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InvalidRequest 2

The system cannot fulfill the request as configured.

This error is permanent as it indicates a malformed or invalid request.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_INVALID_REQUEST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

UnsupportedSource 3

The source of the operation is unsupported or invalid.

This error is permanent as it indicates an issue with the request.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_UNSUPPORTED_SOURCE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

UnsupportedTarget 4

The target of the operation is unsupported or invalid.

This error is permanent as it indicates an issue with the request.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_UNSUPPORTED_TARGET.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PermissionDenied 5

The operation failed due to missing permissions.

This error is permanent unless the user manually grants the required permissions.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_PERMISSION_DENIED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DiskFull 6

The operation failed because the disk is full.

This error is potentially transient if the user clears enough space on the storage device.

Android reference for android.os.storage.operations.FileOperationResult.ERROR_DISK_FULL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to