Class UploadRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.espirit.firstspirit.access.store.mediastore.UploadRejectedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MediaConstraintsException
This exception indicates a media insertion/upload into the repository has been rejected.
- Since:
- 4.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUploadRejectedException
(@NotNull String message) Create a new exception instance with the given message.UploadRejectedException
(@NotNull String message, @Nullable Throwable cause) Create a new exception instance with the given message and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the @{link IDProvider} where the upload has been rejected.void
setStoreElement
(@NotNull IDProvider storeElement) Set upload rejecting @{link IDProvider}.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UploadRejectedException
Create a new exception instance with the given message.- Parameters:
message
- A meaningful reason, why the upload was rejected.- Since:
- 4.1
-
UploadRejectedException
public UploadRejectedException(@NotNull @NotNull String message, @Nullable @Nullable Throwable cause) Create a new exception instance with the given message and cause.- Parameters:
message
- A meaningful reason, why the upload was rejected.cause
- An optional encapsulated exception containing the original cause.- Since:
- 4.1
-
-
Method Details
-
getStoreElement
Returns the @{link IDProvider} where the upload has been rejected. the element where the exception has been appeared.- Returns:
- IDProvider the exception assigned StoreElement
- Since:
- 4.1
-
setStoreElement
Set upload rejecting @{link IDProvider}. The element where the exception has appeared- Parameters:
storeElement
- the exception assigned StoreElement- Since:
- 4.1
-