jio.console.Errors Maven / Gradle / Ivy
package jio.console;
import jio.IO;
import java.util.function.BiFunction;
import java.util.function.Function;
class Errors {
public static final Function> ARGUMENTS_MISSING =
command -> IO.fail(new InvalidCommand(command,
"You forgot to pass in some argument!")
);
public static final BiFunction> TOO_MANY_ARGUMENTS =
(n, command) -> IO.fail(new InvalidCommand(command,
n + " are too many arguments")
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy