package com.sf.vertx.handle; import com.sf.vertx.enums.GatewayError; import com.sf.vertx.exception.ServiceException; import io.vertx.ext.web.RoutingContext; import lombok.extern.slf4j.Slf4j; @Slf4j public class BodyPreCheckHandlerImpl implements BodyPreCheckHandler { @Override public void handle(RoutingContext ctx) { try { } catch (Exception e) { log.error("BodyPreCheckHandlerImpl:",e); ctx.fail(new ServiceException(GatewayError.DEFAULT_SERVICE_ERROR)); return; } ctx.next(); } }