完成单机TEST统一入口与可靠投递回归收尾
This commit is contained in:
@@ -19,6 +19,7 @@ public final class EventDeliveryObservation {
|
||||
public static String errorCode(Throwable error, boolean permanent, boolean requestStarted) {
|
||||
Set<Throwable> seen = Collections.newSetFromMap(new IdentityHashMap<>());
|
||||
for (Throwable cause = error; cause != null && seen.add(cause); cause = cause.getCause()) {
|
||||
if (cause instanceof feign.codec.DecodeException) return "INVALID_RESPONSE";
|
||||
if (cause instanceof FeignException http && http.status() >= 100 && http.status() <= 599) {
|
||||
return "HTTP_" + http.status();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user