public class ReadWriteConflict extends ControlFlowError
ControlFlowError
thrown when a reading or writing a TxnObject
failed, e.g. because it was locked or because a read or write conflict was detected.
A ReadWriteConflict can in most cases be solved by retrying the Txn
(this will
automatically be done by the TxnExecutor
).Modifier and Type | Field and Description |
---|---|
static ReadWriteConflict |
INSTANCE |
Constructor and Description |
---|
ReadWriteConflict(boolean fillStackTrace)
Creates a new ReadWriteConflict.
|
ReadWriteConflict(String message)
Creates a new ReadWriteConflict.
|
ReadWriteConflict(String message,
Throwable cause)
Creates a new ReadWriteConflict.
|
getStackTrace
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final ReadWriteConflict INSTANCE
public ReadWriteConflict(boolean fillStackTrace)
fillStackTrace
- if the StackTrace should be filled.public ReadWriteConflict(String message)
message
- the message of the ReadWriteConflict.Copyright © 2020. All rights reserved.