Class NameConflictException

  • All Implemented Interfaces:
    Serializable

    public class NameConflictException
    extends RenameException
    Signals that a rename was rejected because the new name already belongs to something else at the target location.
    See Also:
    Serialized Form
    • Constructor Detail

      • NameConflictException

        public NameConflictException​(String conflictingName,
                                     String existingName,
                                     String location)
        Creates a conflict report, building the message from the three parts.
        Parameters:
        conflictingName - the name the rename tried to introduce
        existingName - the name already in use
        location - where the clash occurs
    • Method Detail

      • getConflictingName

        public String getConflictingName()
        Returns:
        the conflicting name
      • getExistingName

        public String getExistingName()
        Returns:
        the existing name
      • getLocation

        public String getLocation()
        Returns:
        the location