All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permazen.jsck.InvalidKey Maven / Gradle / Ivy

Go to download

Permazen analog to UNIX fsck(8) command for checking the consistency of, and repairing any corruption in, a Permazen key/value database

There is a newer version: 5.1.0
Show newest version

/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package io.permazen.jsck;

import io.permazen.kv.KVPair;

/**
 * Represents an invalid/unexpected key in a Permazen 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 - 2024 Weber Informatics LLC | Privacy Policy