Class FileRejectedEvent

  • All Implemented Interfaces:
    Serializable

    public class FileRejectedEvent
    extends com.vaadin.flow.component.ComponentEvent<Upload>
    Sent when the file selected for upload doesn't meet the constraints specified on Upload
    Author:
    Vaadin Ltd.
    See Also:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • getErrorMessage

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