Package dev.turboism.sdk.ui
Enum Class UserFileErrorCode
- All Implemented Interfaces:
Serializable,Comparable<UserFileErrorCode>,Constable
Typed failure categories returned by user-file operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe provider cannot guarantee an atomic replacement of the selected target.The request or asynchronous operation was canceled.The handle belongs to a different plugin or runtime service instance.A one-operation or normally closed grant can no longer be used.The grant was explicitly revoked or invalidated by plugin/runtime shutdown.The supplied handle is not a runtime-issued user-file grant.A safe I/O or validation failure prevented the requested operation.The handle authorizes a different operation mode.A required file or chooser permission was not granted to the plugin.No suitable user-file provider or active runtime is available.The requested or supplied byte count exceeded the bounded operation limit. -
Method Summary
Modifier and TypeMethodDescriptionstatic UserFileErrorCodeReturns the enum constant of this class with the specified name.static UserFileErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERMISSION_DENIED
A required file or chooser permission was not granted to the plugin. -
INVALID_GRANT
The supplied handle is not a runtime-issued user-file grant. -
MODE_MISMATCH
The handle authorizes a different operation mode. -
GRANT_EXPIRED
A one-operation or normally closed grant can no longer be used. -
GRANT_REVOKED
The grant was explicitly revoked or invalidated by plugin/runtime shutdown. -
FOREIGN_GRANT
The handle belongs to a different plugin or runtime service instance. -
SIZE_LIMIT_EXCEEDED
The requested or supplied byte count exceeded the bounded operation limit. -
ATOMIC_REPLACE_UNAVAILABLE
The provider cannot guarantee an atomic replacement of the selected target. -
CANCELED
The request or asynchronous operation was canceled. -
RUNTIME_UNAVAILABLE
No suitable user-file provider or active runtime is available. -
IO_FAILURE
A safe I/O or validation failure prevented the requested operation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-