diff options
Diffstat (limited to 'dslog/UnsupportedVersionException.java')
-rw-r--r-- | dslog/UnsupportedVersionException.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dslog/UnsupportedVersionException.java b/dslog/UnsupportedVersionException.java new file mode 100644 index 0000000..2667804 --- /dev/null +++ b/dslog/UnsupportedVersionException.java @@ -0,0 +1,12 @@ +package dslog; + +import java.io.IOException; + +class UnsupportedVersionException extends IOException { + public UnsupportedVersionException(String thing, int version) { + super("Unsupported file format version: "+thing+" v"+version); + } + public UnsupportedVersionException(String thing, int version, int cur) { + super("File format version ("+thing+" v"+version+") new that log reader ("+cur+")"); + } +} |