org.jsimpledb.jsck.InvalidKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-jsck Show documentation
Show all versions of jsimpledb-jsck Show documentation
JSimpleDB analog to UNIX fsck(8) command for checking the consistency of, and repairing any corruption in, a JSimpleDB key/value database
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.jsck;
import org.jsimpledb.kv.KVPair;
/**
* Represents an invalid/unexpected key in a JSimpleDB key/value database.
*/
public class InvalidKey extends Issue {
public InvalidKey(KVPair pair) {
this(pair.getKey(), pair.getValue());
}
public InvalidKey(byte[] key, byte[] value) {
super("invalid key", key, value, null);
}
public InvalidKey(String message, byte[] key, byte[] value) {
super(message, key, value, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy