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

public class UploadRejectedException extends RuntimeException
This exception indicates a media insertion/upload into the repository has been rejected.
Since:
4.1
See Also:
  • Constructor Details

    • UploadRejectedException

      public UploadRejectedException(@NotNull @NotNull String message)
      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

      public IDProvider 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

      public void setStoreElement(@NotNull @NotNull IDProvider storeElement)
      Set upload rejecting @{link IDProvider}. The element where the exception has appeared
      Parameters:
      storeElement - the exception assigned StoreElement
      Since:
      4.1