Package org.apache.hadoop.hbase.util
Class ExceptionUtil
java.lang.Object
org.apache.hadoop.hbase.util.ExceptionUtil
This class handles the different interruption classes. It can be: - InterruptedException -
 InterruptedIOException (inherits IOException); used in IO - ClosedByInterruptException (inherits
 IOException) - SocketTimeoutException inherits InterruptedIOException but is not a real
 interruption, so we have to distinguish the case. This pattern is unfortunately common.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic InterruptedIOExceptionReturns an InterruptedIOException if t was an interruption, null otherwisestatic booleanReturns true if the throwable comes an interruption, false otherwise.static voidThrow InterruptedIOException if t was an interruption, nothing otherwise.
- 
Constructor Details- 
ExceptionUtilprivate ExceptionUtil()
 
- 
- 
Method Details- 
isInterruptReturns true if the throwable comes an interruption, false otherwise.
- 
rethrowIfInterruptThrow InterruptedIOException if t was an interruption, nothing otherwise.- Throws:
- InterruptedIOException
 
- 
asInterruptReturns an InterruptedIOException if t was an interruption, null otherwise
 
-