完成单机TEST统一入口与可靠投递回归收尾
This commit is contained in:
@@ -42,7 +42,8 @@ public class EventDeliveryFailure extends IllegalStateException {
|
||||
&& ("NoFallbackAvailableException".equals(current.getClass().getSimpleName())
|
||||
|| "No fallback available.".equals(current.getMessage()))) current = current.getCause();
|
||||
String message;
|
||||
if (current instanceof FeignException http) message = "HTTP " + http.status();
|
||||
if (current instanceof feign.codec.DecodeException) message = "Invalid consumer response contract";
|
||||
else if (current instanceof FeignException http) message = "HTTP " + http.status();
|
||||
else if (current instanceof JsonProcessingException) message = "Invalid event JSON";
|
||||
else message = current.getMessage() == null ? "unknown" : current.getMessage();
|
||||
String text = current.getClass().getSimpleName() + ": " + message;
|
||||
|
||||
Reference in New Issue
Block a user