Module info.picocli
Package picocli

Class CommandLine.ExecutionException

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    CommandLine

    public static class CommandLine.ExecutionException
    extends CommandLine.PicocliException
    Exception indicating a problem while invoking a command or subcommand. Keeps a reference to the CommandLine object where the cause exception occurred, so that client code can tailor their handling for the specific command (print the command's usage help message, for example).
    Since:
    2.0
    See Also:
    Serialized Form
    • Method Detail

      • getCommandLine

        public CommandLine getCommandLine()
        Returns the CommandLine object for the (sub)command that could not be invoked.
        Returns:
        the CommandLine object for the (sub)command where invocation failed.