/** * Handles the given {@link RuntimeException}. This method delegates * handling of the exception to the {@link IOReactorExceptionHandler}, * if available. * * @param ex the runtime exception. */ protected void handleRuntimeException(final RuntimeException ex) { if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw ex; } }
/** * Handles the given {@link RuntimeException}. This method delegates * handling of the exception to the {@link IOReactorExceptionHandler}, * if available. * * @param ex the runtime exception. */ protected void handleRuntimeException(final RuntimeException ex) { if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw ex; } }
} catch (final IOException ex) { if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw new IOReactorException( "Failure accepting connection", ex); } catch (final IOException ex) { if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw new IOReactorException( "Failure initalizing socket", ex);
} catch (final IOException ex) { if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw new IOReactorException( "Failure accepting connection", ex); } catch (final IOException ex) { if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw new IOReactorException( "Failure initalizing socket", ex);
closeChannel(serverChannel); request.failed(ex); if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw new IOReactorException("Failure binding socket to address " + address, ex);
closeChannel(serverChannel); request.failed(ex); if (this.exceptionHandler == null || !this.exceptionHandler.handle(ex)) { throw new IOReactorException("Failure binding socket to address " + address, ex);