Class CommandLine.ExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.logging.log4j.core.tools.picocli.CommandLine.PicocliException
-
- org.apache.logging.log4j.core.tools.picocli.CommandLine.ExecutionException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CommandLine
public static class CommandLine.ExecutionException extends CommandLine.PicocliException
Exception indicating a problem while invoking a command or subcommand.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecutionException(CommandLine commandLine, java.lang.String msg)
ExecutionException(CommandLine commandLine, java.lang.String msg, java.lang.Exception ex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandLine
getCommandLine()
Returns theCommandLine
object for the (sub)command that could not be invoked.
-
-
-
Constructor Detail
-
ExecutionException
public ExecutionException(CommandLine commandLine, java.lang.String msg)
-
ExecutionException
public ExecutionException(CommandLine commandLine, java.lang.String msg, java.lang.Exception ex)
-
-
Method Detail
-
getCommandLine
public CommandLine getCommandLine()
Returns theCommandLine
object for the (sub)command that could not be invoked.- Returns:
- the
CommandLine
object for the (sub)command where invocation failed.
-
-