public class CommandException extends java.lang.RuntimeException
Runtime exception wrapper that defines additional Options that are understood by the org.springframework.boot.cli.command.CommandRunner.
| Modifiers | Name | Description |
|---|---|---|
enum |
CommandException.Option |
Specific options understood by the CommandRunner. |
| Constructor and description |
|---|
CommandException(CommandException.Option options)Create a new CommandException with the specified options. |
CommandException(java.lang.String message, CommandException.Option options)Create a new CommandException with the specified options. |
CommandException(java.lang.String message, java.lang.Throwable cause, CommandException.Option options)Create a new CommandException with the specified options. |
CommandException(java.lang.Throwable cause, CommandException.Option options)Create a new CommandException with the specified options. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.util.Set<Option> |
getOptions()Returns a set of options that are understood by the org.springframework.boot.cli.command.CommandRunner. |
| Methods inherited from class | Name |
|---|---|
class java.lang.RuntimeException |
java.lang.RuntimeException#addSuppressed(java.lang.Throwable), java.lang.RuntimeException#equals(java.lang.Object), java.lang.RuntimeException#fillInStackTrace(), java.lang.RuntimeException#getCause(), java.lang.RuntimeException#getClass(), java.lang.RuntimeException#getLocalizedMessage(), java.lang.RuntimeException#getMessage(), java.lang.RuntimeException#getStackTrace(), java.lang.RuntimeException#getSuppressed(), java.lang.RuntimeException#hashCode(), java.lang.RuntimeException#initCause(java.lang.Throwable), java.lang.RuntimeException#notify(), java.lang.RuntimeException#notifyAll(), java.lang.RuntimeException#printStackTrace(), java.lang.RuntimeException#printStackTrace(java.io.PrintStream), java.lang.RuntimeException#printStackTrace(java.io.PrintWriter), java.lang.RuntimeException#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.RuntimeException#toString(), java.lang.RuntimeException#wait(), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#wait(long, int) |
Create a new CommandException with the specified options.
options - the exception optionsCreate a new CommandException with the specified options.
message - the exception message to display to the useroptions - the exception optionsCreate a new CommandException with the specified options.
message - the exception message to display to the usercause - the underlying causeoptions - the exception optionsCreate a new CommandException with the specified options.
cause - the underlying causeoptions - the exception options