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

jio.console.Errors Maven / Gradle / Ivy

There is a newer version: 3.0.0-RC2
Show newest version
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