@API(value=MAINTAINED) public class LoggableTimeoutException extends TimeoutException implements LoggableKeysAndValues<LoggableTimeoutException>
Constructor and Description |
---|
LoggableTimeoutException(Throwable cause,
Object... keyValues)
Create an exception with the given sequence of key/value pairs.
|
Modifier and Type | Method and Description |
---|---|
LoggableTimeoutException |
addLogInfo(Object... keyValue) |
LoggableTimeoutException |
addLogInfo(String description,
Object object) |
Object[] |
exportLogInfo() |
Map<String,Object> |
getLogInfo() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LoggableTimeoutException(@Nonnull Throwable cause, @Nullable Object... keyValues)
IllegalArgumentException
if keyValues
contains an odd number of elements.cause
- root cause of the timeout exceptionkeyValues
- loggable keys and valuesaddLogInfo(Object...)
@Nonnull public Map<String,Object> getLogInfo()
getLogInfo
in interface LoggableKeysAndValues<LoggableTimeoutException>
@Nonnull public LoggableTimeoutException addLogInfo(@Nonnull String description, Object object)
addLogInfo
in interface LoggableKeysAndValues<LoggableTimeoutException>
@Nonnull public LoggableTimeoutException addLogInfo(@Nonnull Object... keyValue)
addLogInfo
in interface LoggableKeysAndValues<LoggableTimeoutException>
@Nonnull public Object[] exportLogInfo()
exportLogInfo
in interface LoggableKeysAndValues<LoggableTimeoutException>