Class ElementDeletedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.espirit.common.CheckedException
de.espirit.firstspirit.access.store.ElementDeletedException
All Implemented Interfaces:
LocalizableError, Serializable

public class ElementDeletedException extends CheckedException
This exception will be thrown if an already deleted element is tried to change.
Since:
2.3
See Also:
  • Constructor Details

    • ElementDeletedException

      public ElementDeletedException(Store.Type storeType, long id, String uid, String name)
      Since:
      4.0.43
    • ElementDeletedException

      public ElementDeletedException(IDProvider idProvider)
      Since:
      4.0.17
  • Method Details

    • getStore

      public Store.Type getStore()
      Returns type of the store of the element which causes this exception
      Returns:
      type of the store of the element which causes this exception.
      Since:
      4.0.13
    • hasStoreElementUid

      public boolean hasStoreElementUid()
      Indicates wether the element which causes this exception has a uid or not and therefore getStoreElementUid() delivers a valid uid or null
      Returns:
      true if getStoreElementUid() delivers a valid uid, false otherwise
      Since:
      4.0.13
    • getStoreElementUid

      public String getStoreElementUid()
      Returns the uid of the element which causes this exception if an uid exists.
      Returns:
      uid of the element which causes this exception if an uid exists.
      Since:
      4.0.13
      See Also:
    • getStoreElementName

      public String getStoreElementName()
      Returns the name of the element which causes this exception.
      If an uid exists the uid should be used instead of the name.
      Returns:
      name of the element which causes this exception.
      Since:
      4.0.13
    • getStoreElementId

      public long getStoreElementId()
      Returns the id of the element which causes this exception.
      Returns:
      id of the element which causes this exception.
      Since:
      4.0.13
    • getName

      public String getName()
      Returns the uid if it exists, the name otherwise.
      Since:
      4.1.10