fix: isolate legacy from shadow admission errors
This commit is contained in:
@@ -419,7 +419,7 @@ public class ToWmsServiceImpl implements IToWmsService {
|
||||
InboundShadowCompletion shadowCompletion = InboundShadowCompletion.rejected();
|
||||
try {
|
||||
shadowCompletion = shadowObservationGateway.observeInbound(taskNo, inJob.getTrayCode());
|
||||
} catch (RuntimeException exception) {
|
||||
} catch (RuntimeException | Error exception) {
|
||||
// Shadow admission is best-effort; Legacy continues unchanged.
|
||||
}
|
||||
try {
|
||||
|
||||
@@ -258,7 +258,7 @@ public class OutStockoutServiceImpl implements IOutStockoutService
|
||||
private OutboundShadowCompletion observeProjectOutboundShadow(String stockoutDetailId) {
|
||||
try {
|
||||
return shadowObservationGateway.observeProjectOutbound(stockoutDetailId);
|
||||
} catch (RuntimeException exception) {
|
||||
} catch (RuntimeException | Error exception) {
|
||||
return OutboundShadowCompletion.rejected();
|
||||
}
|
||||
}
|
||||
@@ -266,7 +266,7 @@ public class OutStockoutServiceImpl implements IOutStockoutService
|
||||
private OutboundShadowCompletion observeExactStockOutboundShadow(String stockoutDetailId, String stockId) {
|
||||
try {
|
||||
return shadowObservationGateway.observeExactStockOutbound(stockoutDetailId, stockId);
|
||||
} catch (RuntimeException exception) {
|
||||
} catch (RuntimeException | Error exception) {
|
||||
return OutboundShadowCompletion.rejected();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user