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

io.permazen.jsck.InvalidValue 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 value in a Permazen key/value database under an otherwise valid key.
 */
public class InvalidValue extends Issue {

    public InvalidValue(KVPair pair) {
        this(pair, null);
    }

    public InvalidValue(KVPair pair, byte[] newValue) {
        this(pair.getKey(), pair.getValue(), newValue);
    }

    public InvalidValue(byte[] key, byte[] oldValue) {
        this(key, oldValue, null);
    }

    public InvalidValue(byte[] key, byte[] oldValue, byte[] newValue) {
        this("invalid value", key, oldValue, newValue);
    }

    public InvalidValue(String description, byte[] key, byte[] oldValue, byte[] newValue) {
        super(description, key, oldValue, newValue);
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy