import org.slf4j.LoggerFactory;
public final class DeserializerExceptionHandler implements ChannelHandler {
-
private static final Logger LOG = LoggerFactory.getLogger(DeserializerExceptionHandler.class);
@Override
final Map<String, String> info = new HashMap<>();
info.put("cause", cause.getMessage());
final DocumentedException ex = new DocumentedException(cause.getMessage(),
- ErrorType.RPC, DocumentedException.ErrorTag.MALFORMED_MESSAGE, ErrorSeverity.ERROR, info);
+ ErrorType.RPC, DocumentedException.MALFORMED_MESSAGE, ErrorSeverity.ERROR, info);
SendErrorExceptionUtil.sendErrorMessage(ctx.channel(), ex);
}