sac/sf-vertx/src/main/java/com/sf/vertx/handle/BodyPreCheckHandlerImpl.java

22 lines
567 B
Java
Raw Normal View History

2024-05-21 14:17:59 +08:00
package com.sf.vertx.handle;
2024-05-24 18:54:30 +08:00
import com.sf.vertx.enums.GatewayError;
import com.sf.vertx.exception.ServiceException;
2024-05-21 14:17:59 +08:00
import io.vertx.ext.web.RoutingContext;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class BodyPreCheckHandlerImpl implements BodyPreCheckHandler {
2024-05-21 14:17:59 +08:00
2024-05-21 17:39:43 +08:00
@Override
public void handle(RoutingContext ctx) {
2024-05-21 17:39:43 +08:00
try {
} catch (Exception e) {
log.error("BodyPreCheckHandlerImpl:",e);
ctx.fail(new ServiceException(GatewayError.DEFAULT_SERVICE_ERROR));
2024-05-21 17:39:43 +08:00
return;
}
ctx.next();
2024-05-21 17:39:43 +08:00
}
}