public class CommandException extends RuntimeException
CommandException.Option
s that are understood
by the CommandRunner
.Modifier and Type | Class and Description |
---|---|
static class |
CommandException.Option
Specific options understood by the
CommandRunner . |
Constructor and Description |
---|
CommandException(CommandException.Option... options)
Create a new
CommandException with the specified options. |
CommandException(String message,
CommandException.Option... options)
Create a new
CommandException with the specified options. |
CommandException(String message,
Throwable cause,
CommandException.Option... options)
Create a new
CommandException with the specified options. |
CommandException(Throwable cause,
CommandException.Option... options)
Create a new
CommandException with the specified options. |
Modifier and Type | Method and Description |
---|---|
Set<CommandException.Option> |
getOptions()
Returns a set of options that are understood by the
CommandRunner . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CommandException(CommandException.Option... options)
CommandException
with the specified options.options
- the exception optionspublic CommandException(String message, CommandException.Option... options)
CommandException
with the specified options.message
- the exception message to display to the useroptions
- the exception optionspublic CommandException(String message, Throwable cause, CommandException.Option... options)
CommandException
with the specified options.message
- the exception message to display to the usercause
- the underlying causeoptions
- the exception optionspublic CommandException(Throwable cause, CommandException.Option... options)
CommandException
with the specified options.cause
- the underlying causeoptions
- the exception optionspublic Set<CommandException.Option> getOptions()
CommandRunner
.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.