1 5 package org.prevayler.implementation.snapshot; 6 7 import java.io.IOException ; 8 9 public class NullSnapshotManager extends SnapshotManager { 10 11 private final String _snapshotAttemptErrorMessage; 12 13 public NullSnapshotManager(Object newPrevalentSystem, String snapshotAttemptErrorMessage) { 14 super(newPrevalentSystem); 15 _snapshotAttemptErrorMessage = snapshotAttemptErrorMessage; 16 } 17 18 public void writeSnapshot(Object prevalentSystem, long version) throws IOException { 19 throw new IOException (_snapshotAttemptErrorMessage); 20 } 21 22 } 23 | Popular Tags |