Prompt.Option, Prompt.Options, Prompt.Type| Constructor and Description |
|---|
AbstractPrompt() |
| Modifier and Type | Method and Description |
|---|---|
Prompt.Option |
confirm(Prompt.Type type,
String message,
Prompt.Options options)
Displays a confirmation message.
|
Prompt.Option |
confirm(Prompt.Type type,
String message,
Prompt.Options options,
Prompt.Option defaultOption)
Displays a confirmation message.
|
Prompt.Option |
confirm(Prompt.Type type,
String title,
String message,
Prompt.Options options)
Displays a confirmation message.
|
void |
error(String message)
Displays an error message.
|
void |
error(String title,
String message)
Displays an error message.
|
void |
error(String title,
String message,
Throwable throwable)
Displays an error message.
|
void |
error(String message,
Throwable throwable)
Displays an error message.
|
void |
error(Throwable throwable)
Displays an error message.
|
protected static String |
getDetails(Throwable throwable) |
static String |
getThrowableMessage(Throwable throwable)
Try to extract the uppermost message from a Throwable's stacktrace.
|
protected String |
getTitle(Prompt.Type type)
Returns the dialog title based on the type of the message.
|
void |
message(Prompt.Type type,
String message)
Displays a message.
|
void |
message(Prompt.Type type,
String title,
String message)
Displays a message.
|
void |
message(Throwable throwable)
Displays a message.
|
void |
warn(String message)
Displays a warning message.
|
void |
warn(String title,
String message)
Displays a warning message.
|
void |
warn(Throwable throwable)
Displays a warning message.
|
public void message(Throwable throwable)
Promptpublic void message(Prompt.Type type, String message)
Promptpublic void message(Prompt.Type type, String title, String message)
Promptpublic void warn(Throwable throwable)
Promptpublic void warn(String message)
Promptpublic void warn(String title, String message)
Promptpublic void error(Throwable throwable)
Promptpublic void error(String message)
Promptpublic void error(String message, Throwable throwable)
Promptpublic void error(String title, String message)
Promptpublic void error(String title, String message, Throwable throwable)
Promptpublic Prompt.Option confirm(Prompt.Type type, String message, Prompt.Options options)
public Prompt.Option confirm(Prompt.Type type, String message, Prompt.Options options, Prompt.Option defaultOption)
public Prompt.Option confirm(Prompt.Type type, String title, String message, Prompt.Options options)
protected String getTitle(Prompt.Type type)
type - the message typepublic static String getThrowableMessage(Throwable throwable)
throwable - the Throwable to examine including its causesCopyright © 2001–2025. All rights reserved.