ProtonHelper.condition

Create an ErrorCondition with the given error condition value and error description string.

See the AMQP specification <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-transport-v1.0-os.html#type-amqp-error">error sections</a> for details of various standard error condition values.

For useful condition value constants, see {@link hunt.proton.amqp.transport.AmqpError AmqpError}, {@link hunt.proton.amqp.transport.ConnectionError ConnectionError}, {@link hunt.proton.amqp.transport.SessionError SessionError} and {@link hunt.proton.amqp.transport.LinkError LinkError}.

@param condition the error condition value @param description String description of the error, may be null @return the condition

  1. ErrorCondition condition(Symbol condition, String description)
    interface ProtonHelper
    static
    ErrorCondition
    condition
    (
    Symbol condition
    ,)
  2. ErrorCondition condition(String condition, String description)

Meta