Package com.apple.foundationdb.record
Class LoggableTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.TimeoutException
com.apple.foundationdb.record.LoggableTimeoutException
- All Implemented Interfaces:
LoggableKeysAndValues<LoggableTimeoutException>,Serializable
@API(UNSTABLE)
public class LoggableTimeoutException
extends TimeoutException
implements LoggableKeysAndValues<LoggableTimeoutException>
Subclass of TimeoutException with support for adding logging info in the form of keys and values. This enables
TimeoutException's
to provide context-specific details that can be logged in a way that better supports troubleshooting later.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLoggableTimeoutException(Throwable cause, Object... keyValues) Create an exception with the given sequence of key/value pairs. -
Method Summary
Modifier and TypeMethodDescriptionaddLogInfo(Object... keyValue) addLogInfo(String description, Object object) Object[]Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LoggableTimeoutException
Create an exception with the given sequence of key/value pairs. This will throw anIllegalArgumentExceptionifkeyValuescontains an odd number of elements.- Parameters:
cause- root cause of the timeout exceptionkeyValues- loggable keys and values- See Also:
-
-
Method Details
-
getLogInfo
- Specified by:
getLogInfoin interfaceLoggableKeysAndValues<LoggableTimeoutException>
-
addLogInfo
- Specified by:
addLogInfoin interfaceLoggableKeysAndValues<LoggableTimeoutException>
-
addLogInfo
- Specified by:
addLogInfoin interfaceLoggableKeysAndValues<LoggableTimeoutException>
-
exportLogInfo
- Specified by:
exportLogInfoin interfaceLoggableKeysAndValues<LoggableTimeoutException>
-