@Component public class ThrowableResultHandler extends TerminalAwareResultHandler<Throwable>
ResultHandler
that prints thrown exceptions messages in red.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() |
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.
|
handleResult, setTerminal
public static final String DETAILS_COMMAND_NAME
protected void doHandleResult(Throwable result)
doHandleResult
in class TerminalAwareResultHandler<Throwable>
public Throwable getLastError()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.