Package org.apache.pulsar.common.util
Class ExceptionHandler
java.lang.Object
org.apache.pulsar.common.util.ExceptionHandler
Util class to place some special handling of exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
handleInterruptedException
(Throwable throwable) If the throwable is InterruptedException, reset the thread interrupted flag.
-
Method Details
-
handleInterruptedException
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
-