formalCheck.complete(); } else { formalCheck.fail(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload")); .failedFuture(new AmqpErrorException(AmqpError.ILLEGAL_STATE, "unsubscribed reply-to address")); } catch (final DecodeException e) { return Future .failedFuture(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload")); .failedFuture(new AmqpErrorException(AmqpError.UNAUTHORIZED_ACCESS, "unauthorized"));
formalCheck.complete(); } else { formalCheck.fail(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload")); .failedFuture(new AmqpErrorException(AmqpError.ILLEGAL_STATE, "unsubscribed reply-to address")); } catch (final DecodeException e) { return Future .failedFuture(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload")); .failedFuture(new AmqpErrorException(AmqpError.UNAUTHORIZED_ACCESS, "unauthorized"));