@Test public void testPlaceholder() { final BackgroundException e = new DefaultIOExceptionMappingService().map("{0} message", new SocketException("s"), new Path("/n", EnumSet.of(Path.Type.directory, Path.Type.volume))); assertEquals("N message.", e.getMessage()); assertEquals("S. The connection attempt was rejected. The server may be down, or your network may not be properly configured.", e.getDetail()); }
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);  }