Class LogExceptionRunnable
- java.lang.Object
-
- org.apache.bookkeeper.common.util.LogExceptionRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
public final class LogExceptionRunnable extends java.lang.Object implements java.lang.Runnable
A simple wrapper for aRunnable
that logs any exception thrown by it, before re-throwing it.
-
-
Constructor Summary
Constructors Constructor Description LogExceptionRunnable(java.lang.Runnable task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
java.lang.String
toString()
-