Revert "Reuse NoTransactionInContextException instances"
This reverts commit 8e3846991d.
Closes gh-34048
This commit is contained in:
parent
4f815b0055
commit
a00ba8dbcf
|
|
@ -37,9 +37,6 @@ import org.springframework.transaction.NoTransactionException;
|
|||
*/
|
||||
public abstract class TransactionContextManager {
|
||||
|
||||
private static final NoTransactionInContextException NO_TRANSACTION_IN_CONTEXT_EXCEPTION =
|
||||
new NoTransactionInContextException();
|
||||
|
||||
private TransactionContextManager() {
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +60,7 @@ public abstract class TransactionContextManager {
|
|||
return Mono.just(holder.currentContext());
|
||||
}
|
||||
}
|
||||
return Mono.error(NO_TRANSACTION_IN_CONTEXT_EXCEPTION);
|
||||
return Mono.error(new NoTransactionInContextException());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue