public class DuplicateValException extends RuntimeException{ public DuplicateValException(){ super("Duplicate value"); } }