summaryrefslogtreecommitdiff
path: root/dslog/UnsupportedVersionException.java
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-03-13 18:16:25 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-03-13 18:16:25 -0400
commit2c9c848ae275705ce315b6061cd06640834c9d9d (patch)
treec2a0a1b1a45fe1e88cbfc2fafd1ba01ededcb987 /dslog/UnsupportedVersionException.java
parentcf1ea6c1a28ec7bc4cc7b8cd0da8ad5f1011ac7c (diff)
lazy-parse the version and startTime
Diffstat (limited to 'dslog/UnsupportedVersionException.java')
-rw-r--r--dslog/UnsupportedVersionException.java12
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+")");
+ }
+}