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
This exception will be thrown if an already deleted element is tried to change.
- Since:
- 2.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionElementDeletedException(IDProvider idProvider) ElementDeletedException(Store.Type storeType, long id, String uid, String name) -
Method Summary
Modifier and TypeMethodDescriptiongetName()getStore()Returnstypeof the store of the element which causes this exceptionlongReturns theidof the element which causes this exception.booleanIndicates wether the element which causes this exception has auidor not and thereforegetStoreElementUid()delivers a valid uid ornullMethods inherited from class de.espirit.common.CheckedException
getContext, getErrorCode, getLocalizedMessage, setErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ElementDeletedException
- Since:
- 4.0.43
-
ElementDeletedException
- Since:
- 4.0.17
-
-
Method Details
-
getStore
Returnstypeof the store of the element which causes this exception- Returns:
typeof 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 auidor not and thereforegetStoreElementUid()delivers a valid uid ornull- Returns:
trueifgetStoreElementUid()delivers a valid uid,falseotherwise- Since:
- 4.0.13
-
getStoreElementUid
-
getStoreElementName
Returns thenameof the element which causes this exception.
If an uidexiststhe uid should be used instead of the name.- Returns:
nameof the element which causes this exception.- Since:
- 4.0.13
-
getStoreElementId
public long getStoreElementId()Returns theidof the element which causes this exception.- Returns:
idof the element which causes this exception.- Since:
- 4.0.13
-
getName
- Since:
- 4.1.10
-