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
ConstructorDescriptionElementDeletedException
(IDProvider idProvider) ElementDeletedException
(Store.Type storeType, long id, String uid, String name) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getStore()
Returnstype
of the store of the element which causes this exceptionlong
Returns theid
of the element which causes this exception.boolean
Indicates wether the element which causes this exception has auid
or not and thereforegetStoreElementUid()
delivers a valid uid ornull
Methods inherited from class de.espirit.common.CheckedException
getContext, getErrorCode, getLocalizedMessage, setErrorCode
Methods 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
Returnstype
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 auid
or not and thereforegetStoreElementUid()
delivers a valid uid ornull
- Returns:
true
ifgetStoreElementUid()
delivers a valid uid,false
otherwise- Since:
- 4.0.13
-
getStoreElementUid
-
getStoreElementName
Returns thename
of the element which causes this exception.
If an uidexists
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 theid
of the element which causes this exception.- Returns:
id
of the element which causes this exception.- Since:
- 4.0.13
-
getName
- Since:
- 4.1.10
-