Class LogExceptionRunnable

java.lang.Object
io.grpc.internal.LogExceptionRunnable
All Implemented Interfaces:
Runnable

public final class LogExceptionRunnable extends Object implements Runnable
A simple wrapper for a Runnable that logs any exception thrown by it, before re-throwing it.
  • Field Details

    • log

      private static final Logger log
    • task

      private final Runnable task
  • Constructor Details

    • LogExceptionRunnable

      public LogExceptionRunnable(Runnable task)
  • Method Details