org.jsimpledb.kv.TransactionTimeoutException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-kv Show documentation
Show all versions of jsimpledb-kv Show documentation
JSimpleDB classes relating to the key/value store API.
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);
}
}