Class ExceptionHandler

java.lang.Object
org.apache.pulsar.common.util.ExceptionHandler

public class ExceptionHandler extends Object
Util class to place some special handling of exceptions.
  • Method Details

    • handleInterruptedException

      public static void handleInterruptedException(Throwable throwable)
      If the throwable is InterruptedException, reset the thread interrupted flag. We can use it in catching block when we need catch the InterruptedException and reset the thread interrupted flag no matter whether the throwable being caught is InterruptedException.
      Parameters:
      throwable - the throwable being caught