Class AmqpException.AmqpInvalidMessageException

All Implemented Interfaces:
Serializable
Enclosing class:
AmqpException

public static class AmqpException.AmqpInvalidMessageException extends AmqpException
Exception thrown when a message is invalid or violates message format constraints.

This exception is typically thrown when:

  • A message exceeds the maximum allowed message size configured on the broker
  • A message has an invalid format or structure
  • A message violates broker-specific validation rules

Unlike other AMQP exceptions, this exception is often thrown on the client side before the message is sent to the broker, preventing connection or link closure that would occur if the broker rejected the message.

Since:
1.1.0
See Also:
  • Constructor Details

    • AmqpInvalidMessageException

      public AmqpInvalidMessageException(String message, Throwable cause)