Skip to content

Commit

Permalink
Revert "Reuse NoTransactionInContextException instances"
Browse files Browse the repository at this point in the history
This reverts commit 8e38469.

Closes spring-projectsgh-34048
  • Loading branch information
sdeleuze committed Dec 10, 2024
1 parent 4f815b0 commit a00ba8d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
*/
public abstract class TransactionContextManager {

private static final NoTransactionInContextException NO_TRANSACTION_IN_CONTEXT_EXCEPTION =
new NoTransactionInContextException();

private TransactionContextManager() {
}

Expand All @@ -63,7 +60,7 @@ public static Mono<TransactionContext> currentContext() {
return Mono.just(holder.currentContext());
}
}
return Mono.error(NO_TRANSACTION_IN_CONTEXT_EXCEPTION);
return Mono.error(new NoTransactionInContextException());
});
}

Expand Down

0 comments on commit a00ba8d

Please sign in to comment.