Package org.apache.sis.console

## Class InvalidCommandException

- Object
- - Throwable
  - - Exception
    - - InvalidCommandException

- All Implemented Interfaces:
    `Serializable`

      public class InvalidCommandException
      extends Exception

  Thrown when a unknown command has been given by the user on the command-line.
  Since:
    0.3
  See Also:
    Serialized Form

  Defined in the `sis-console` module

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `InvalidCommandException​(String message, String command)` | Constructs an exception with the specified detail message.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getCommand()` | Returns the name of the invalid command.

    - ### Methods inherited from class Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### InvalidCommandException

          public InvalidCommandException​(String message,
                                         String command)

      Constructs an exception with the specified detail message.
      Parameters:
        `message` - the detail message.
        `command` - the name of the invalid command.

  - ### Method Detail

    - #### getCommand

          public String getCommand()

      Returns the name of the invalid command.
      Returns:
        the name of the invalid command.