public class ThrowableResultHandler extends TerminalAwareResultHandler<Throwable>
ResultHandler that prints thrown exceptions messages in red.
 Stores the last exception reported, so that details can be printed using a
 dedicated command if in interactive mode. Prints stacktrace if in
 non-interactive mode as dedicated command could not be used.| Modifier and Type | Field and Description | 
|---|---|
| static String | DETAILS_COMMAND_NAMEThe name of the command that may be used to print details about the last error. | 
terminal| Constructor and Description | 
|---|
| ThrowableResultHandler(org.jline.terminal.Terminal terminal,
                      CommandCatalog commandCatalog,
                      ShellContext shellContext,
                      org.springframework.beans.factory.ObjectProvider<InteractiveShellRunner> interactiveRunner) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | doHandleResult(Throwable result) | 
| Throwable | getLastError()Return the last error that was dealt with by this result handler. | 
handleResultpublic static final String DETAILS_COMMAND_NAME
public ThrowableResultHandler(org.jline.terminal.Terminal terminal,
                              CommandCatalog commandCatalog,
                              ShellContext shellContext,
                              org.springframework.beans.factory.ObjectProvider<InteractiveShellRunner> interactiveRunner)
protected void doHandleResult(Throwable result)
doHandleResult in class TerminalAwareResultHandler<Throwable>public Throwable getLastError()
Copyright © 2023. All rights reserved.