Package org.apache.http.nio.reactor
Interface IOReactorExceptionHandler
-
public interface IOReactorExceptionHandlerAbstract exception handler intended to deal with potentially recoverable I/O exceptions thrown by an I/O reactor.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(java.io.IOException ex)This method is expected to examine the I/O exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.booleanhandle(java.lang.RuntimeException ex)This method is expected to examine the runtime exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.
-
-
-
Method Detail
-
handle
boolean handle(java.io.IOException ex)
This method is expected to examine the I/O exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.- Parameters:
ex- potentially recoverable I/O exception- Returns:
trueif it is safe to ignore the exception and continue execution of the I/O reactor;falseif the I/O reactor must throwIOReactorExceptionand terminate
-
handle
boolean handle(java.lang.RuntimeException ex)
This method is expected to examine the runtime exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.- Parameters:
ex- potentially recoverable runtime exception- Returns:
trueif it is safe to ignore the exception and continue execution of the I/O reactor;falseif the I/O reactor must throwRuntimeExceptionand terminate
-
-