All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.therealmone.spoStackMachine.exceptions.UnknownCommandException Maven / Gradle / Ivy

package io.github.therealmone.spoStackMachine.exceptions;

import io.github.therealmone.translatorAPI.Exceptions.StackMachineException;
import io.github.therealmone.translatorAPI.Interfaces.ExceptionInterface;
import io.github.therealmone.translatorAPI.SavePrinter;

public class UnknownCommandException extends StackMachineException implements ExceptionInterface {
    private String command;

    public UnknownCommandException(String command) {
        super("Unknown command " + command);
        this.command = command;
    }

    @Override
    public void message() {
        SavePrinter.savePrintln("Unknown command " + command);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy