Class DuplicateReferenceNameException

All Implemented Interfaces:
LocalizableError, Serializable

public class DuplicateReferenceNameException extends AccessRuntimeException
Exception thrown on the detection of a duplicate reference name.
Since:
4.0
See Also:
  • 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

      @NotNull public @NotNull String 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

      public String getAttribute()
      Returns the name of the uid attribute.
      Since:
      4.0
    • getOldUid

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