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

org.jsimpledb.kv.StaleTransactionException Maven / Gradle / Ivy

The newest version!

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

package org.jsimpledb.kv;

/**
 * Thrown when an operation is attempted on a {@link KVTransaction} that is no longer usable.
 */
@SuppressWarnings("serial")
public class StaleTransactionException extends KVTransactionException {

    private static final String DEFAULT_MESSAGE = "transaction cannot be accessed because it is no longer usable";

    public StaleTransactionException(KVTransaction kvt) {
        super(kvt, DEFAULT_MESSAGE);
    }

    public StaleTransactionException(KVTransaction kvt, Throwable cause) {
        super(kvt, DEFAULT_MESSAGE, cause);
    }

    public StaleTransactionException(KVTransaction kvt, String message) {
        super(kvt, message);
    }

    public StaleTransactionException(KVTransaction kvt, String message, Throwable cause) {
        super(kvt, message, cause);
    }

    @Override
    public StaleTransactionException duplicate() {
        return (StaleTransactionException)super.duplicate();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy