*/
package org.opendaylight.mdsal.common.api;
-import java.io.Serial;
import java.util.function.Supplier;
import org.opendaylight.yangtools.yang.common.ErrorTag;
import org.opendaylight.yangtools.yang.common.ErrorType;
* @author Thomas Pantelis
*/
public class TransactionCommitDeadlockException extends TransactionCommitFailedException {
- @Serial
+ @java.io.Serial
private static final long serialVersionUID = 1L;
- private static final String DEADLOCK_MESSAGE = "An attempt to block on a ListenableFuture via a get method from a "
- + "write transaction submit was detected that would result in deadlock. The commit result must be obtained "
- + "asynchronously, e.g. via Futures#addCallback, to avoid deadlock.";
+ private static final String DEADLOCK_MESSAGE = """
+ An attempt to block on a ListenableFuture via a get method from a write transaction submit was detected that \
+ would result in deadlock. The commit result must be obtained asynchronously, e.g. via Futures#addCallback, to \
+ avoid deadlock.""";
private static final RpcError DEADLOCK_RPCERROR =
RpcResultBuilder.newError(ErrorType.APPLICATION, ErrorTag.LOCK_DENIED, DEADLOCK_MESSAGE);