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

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

The newest version!

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

package org.jsimpledb.kv;

/**
 * Thrown when a {@link KVTransaction} is kept open for too long.
 */
@SuppressWarnings("serial")
public class TransactionTimeoutException extends StaleTransactionException {

    private static final String DEFAULT_MESSAGE = "transaction cannot be accessed because it has timed out";

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

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

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

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy