public static class CommandLine.ExecutionException extends CommandLine.PicocliException
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).Constructor and Description |
---|
ExecutionException(CommandLine commandLine,
String msg) |
ExecutionException(CommandLine commandLine,
String msg,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
CommandLine |
getCommandLine()
Returns the
CommandLine object for the (sub)command that could not be invoked. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ExecutionException(CommandLine commandLine, String msg)
public ExecutionException(CommandLine commandLine, String msg, Throwable t)
public CommandLine getCommandLine()
CommandLine
object for the (sub)command that could not be invoked.CommandLine
object for the (sub)command where invocation failed.