Package com.tonic.renamer.exception
Class NameConflictException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.tonic.renamer.exception.RenameException
-
- com.tonic.renamer.exception.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 Summary
Constructors Constructor Description NameConflictException(String conflictingName, String existingName, String location)Creates a conflict report, building the message from the three parts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConflictingName()StringgetExistingName()StringgetLocation()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 introduceexistingName- the name already in uselocation- where the clash occurs
-
-