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

jio.console.CommandNotFoundException Maven / Gradle / Ivy

There is a newer version: 3.0.0-RC2
Show newest version
package jio.console;

/**
 * represents an error that happens when the user types in a command and it doesn't exist
 */
@SuppressWarnings("serial")
public class CommandNotFoundException extends Exception {

  /**
   * Creates a CommandNotFoundException from the specified command name
   *
   * @param name the name of the command
   */
  public CommandNotFoundException(String name) {
    super(String.format("Command '%s' not found. Type 'list' to see all possible commands.",
                        name)
         );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy