@Test public void testPeerShutDownIncorrectly() { final DefaultIOExceptionMappingService s = new DefaultIOExceptionMappingService(); final SSLHandshakeException failure = new SSLHandshakeException("Remote host closed connection during handshake"); failure.initCause(new EOFException("SSL peer shut down incorrectly")); assertEquals(ConnectionRefusedException.class, s.map(failure).getClass()); }
public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); } }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }  }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }  BackgroundException map(final IOException failure, final Path directory); @Override BackgroundException map(final IOException failure); }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }  BackgroundException map(final IOException failure, final Path directory); @Override BackgroundException map(final IOException failure);  }