public class ThrowableResultHandler extends TerminalAwareResultHandler<Throwable>
ResultHandler that prints thrown exceptions messages in red.
Also stores the last exception reported, so that details can be printed using a dedicated command.
| Modifier and Type | Field and Description |
|---|---|
static String |
DETAILS_COMMAND_NAME
The 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,
CommandRegistry commandRegistry,
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,
CommandRegistry commandRegistry,
org.springframework.beans.factory.ObjectProvider<InteractiveShellRunner> interactiveRunner)
protected void doHandleResult(Throwable result)
doHandleResult in class TerminalAwareResultHandler<Throwable>public Throwable getLastError()
Copyright © 2022. All rights reserved.