FaultTolerance tolerance = new FaultTolerance(true, false);
tolerance = new FaultTolerance(true, true, IOException.class.getName());
tolerance.handleException(new IOException(), new Record());
tolerance = new FaultTolerance(true, true, IOException.class.getName());
tolerance.handleException(new RuntimeException(), new Record());
tolerance = new FaultTolerance(true, true, IOException.class.getName());
tolerance.handleException(new RuntimeException(new IOException()), new Record());
tolerance = new FaultTolerance(true, false, IOException.class.getName());