Class FileRejectedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Upload>
com.vaadin.flow.component.upload.FileRejectedEvent
All Implemented Interfaces:
Serializable

public class FileRejectedEvent extends ComponentEvent<Upload>
Sent when the file selected for upload doesn't meet the constraints specified on Upload
Author:
Vaadin Ltd.
See Also:
  • Constructor Details

    • FileRejectedEvent

      public FileRejectedEvent(Upload source, String errorMessage)
      Creates a new event using the given source and indicator whether the event originated from the client side or the server side.
      Parameters:
      source - the source component
      errorMessage - the error message
  • Method Details

    • getErrorMessage

      public String getErrorMessage()
      Get the error message
      Returns:
      errorMessage