Package de.espirit.firstspirit.access
Class DuplicateReferenceNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.espirit.common.UncheckedException
de.espirit.firstspirit.access.AccessRuntimeException
de.espirit.firstspirit.access.DuplicateReferenceNameException
- All Implemented Interfaces:
LocalizableError
,Serializable
Exception thrown on the detection of a duplicate reference name.
- Since:
- 4.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDuplicateReferenceNameException
(String message, @NotNull String oldUid, @NotNull String suggestion, @NotNull String attribute, long nodeId) Constructor for this exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the uid attribute.long
The id of the node which causes this duplicate reference name exception.The old uid which already exist on the server.@NotNull String
Returns the suggestion for the uid which was unique at the time calculated on the server.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateReferenceNameException
public DuplicateReferenceNameException(String message, @NotNull @NotNull String oldUid, @NotNull @NotNull String suggestion, @NotNull @NotNull String attribute, long nodeId) Constructor for this exception.- Parameters:
message
- The error message.oldUid
- The failing uid.suggestion
- A suggested uid.nodeId
- The id of the node that failed.attribute
- The name of the uid attribute within the node.- Since:
- 4.0
-
-
Method Details
-
getSuggestion
Returns the suggestion for the uid which was unique at the time calculated on the server.- Returns:
- suggestion for uid
- Since:
- 4.0
-
getAttribute
Returns the name of the uid attribute.- Since:
- 4.0
-
getOldUid
The old uid which already exist on the server.- Since:
- 4.0
-
getNodeId
public long getNodeId()The id of the node which causes this duplicate reference name exception.- Since:
- 4.0
-