![JAR search and dependency download from the Maven repository](/logo.png)
io.github.therealmone.spoStackMachine.collections.hashset.exceptions.KeyAlreadyExistsException Maven / Gradle / Ivy
package io.github.therealmone.spoStackMachine.collections.hashset.exceptions;
import io.github.therealmone.spoStackMachine.exceptions.HashMapException;
import io.github.therealmone.translatorAPI.Interfaces.ExceptionInterface;
import io.github.therealmone.translatorAPI.SavePrinter;
public class KeyAlreadyExistsException extends HashMapException implements ExceptionInterface {
private String key;
public KeyAlreadyExistsException(String key) {
super("Key " + key + " already exists.");
this.key = key;
}
@Override
public void message() {
SavePrinter.savePrintln("Key " + key + " already exists.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy