Enum Class UploadManager.FileRejectionReason

java.lang.Object
java.lang.Enum<UploadManager.FileRejectionReason>
com.vaadin.flow.component.upload.UploadManager.FileRejectionReason
All Implemented Interfaces:
Serializable, Comparable<UploadManager.FileRejectionReason>, Constable
Enclosing class:
UploadManager

public static enum UploadManager.FileRejectionReason extends Enum<UploadManager.FileRejectionReason>
Reasons why a file can be rejected by the upload manager.
  • Enum Constant Details

  • Method Details

    • values

      public static UploadManager.FileRejectionReason[] 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 UploadManager.FileRejectionReason 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
    • fromClientCode

      public static UploadManager.FileRejectionReason fromClientCode(String clientCode)
      Returns the reason matching the given client-side error code, or UNKNOWN if no match is found.
      Parameters:
      clientCode - the error code from the client-side upload manager
      Returns:
      the matching reason, or UNKNOWN