Class UploadRejectedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.vaadin.flow.server.streams.UploadRejectedException
All Implemented Interfaces:
Serializable

public class UploadRejectedException extends IOException
Signals that an upload was rejected by an UploadValidator.

This is passed as the reason to TransferProgressListener.onError(TransferContext, IOException) when a validator calls UploadEvent.reject(String), so that listeners can tell a deliberate rejection apart from a genuine I/O failure. Its message is the rejection message supplied to UploadEvent.reject(String).

See Also:
  • Constructor Details

    • UploadRejectedException

      public UploadRejectedException(String message)
      Creates a new exception with the given rejection message.
      Parameters:
      message - the rejection message