Package io.github.qishr.cascara.common.util
Class ExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.qishr.cascara.common.util.CommandLine.PicocliException
io.github.qishr.cascara.common.util.CommandLine.ExecutionException
Enclosing Class:
io.github.qishr.cascara.common.util.CommandLine
public static class ExecutionException
extends 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).
Constructor Summary
| Constructor | Description |
|---|---|
| ExecutionException(CommandLine commandLine, String msg) | |
| ExecutionException(CommandLine commandLine, String msg, Throwable t) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public CommandLine | getCommandLine() | Returns the CommandLine object for the (sub)command that could not be invoked. |
Method Details
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.