|
|
|
|
@ -37,9 +37,6 @@ import org.springframework.transaction.NoTransactionException;
@@ -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 {
@@ -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()); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|