Package com.vaadin.flow.server.streams
Class UploadRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.vaadin.flow.server.streams.UploadRejectedException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionUploadRejectedException(String message) Creates a new exception with the given rejection message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UploadRejectedException
Creates a new exception with the given rejection message.- Parameters:
message- the rejection message
-