Enum Class UserFileErrorCode

java.lang.Object
java.lang.Enum<UserFileErrorCode>
dev.turboism.sdk.ui.UserFileErrorCode
All Implemented Interfaces:
Serializable, Comparable<UserFileErrorCode>, Constable

public enum UserFileErrorCode extends Enum<UserFileErrorCode>
Typed failure categories returned by user-file operations.
  • Enum Constant Details

    • PERMISSION_DENIED

      public static final UserFileErrorCode PERMISSION_DENIED
      A required file or chooser permission was not granted to the plugin.
    • INVALID_GRANT

      public static final UserFileErrorCode INVALID_GRANT
      The supplied handle is not a runtime-issued user-file grant.
    • MODE_MISMATCH

      public static final UserFileErrorCode MODE_MISMATCH
      The handle authorizes a different operation mode.
    • GRANT_EXPIRED

      public static final UserFileErrorCode GRANT_EXPIRED
      A one-operation or normally closed grant can no longer be used.
    • GRANT_REVOKED

      public static final UserFileErrorCode GRANT_REVOKED
      The grant was explicitly revoked or invalidated by plugin/runtime shutdown.
    • FOREIGN_GRANT

      public static final UserFileErrorCode FOREIGN_GRANT
      The handle belongs to a different plugin or runtime service instance.
    • SIZE_LIMIT_EXCEEDED

      public static final UserFileErrorCode SIZE_LIMIT_EXCEEDED
      The requested or supplied byte count exceeded the bounded operation limit.
    • ATOMIC_REPLACE_UNAVAILABLE

      public static final UserFileErrorCode ATOMIC_REPLACE_UNAVAILABLE
      The provider cannot guarantee an atomic replacement of the selected target.
    • CANCELED

      public static final UserFileErrorCode CANCELED
      The request or asynchronous operation was canceled.
    • RUNTIME_UNAVAILABLE

      public static final UserFileErrorCode RUNTIME_UNAVAILABLE
      No suitable user-file provider or active runtime is available.
    • IO_FAILURE

      public static final UserFileErrorCode IO_FAILURE
      A safe I/O or validation failure prevented the requested operation.
  • Method Details

    • values

      public static UserFileErrorCode[] 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

      public static UserFileErrorCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null