Class AmqpErrorException

    • Constructor Detail

      • AmqpErrorException

        public AmqpErrorException​(org.apache.qpid.proton.amqp.Symbol error,
                                  String description)
        Creates a new exception for an error and description.
        Parameters:
        error - The AMQP error to convey in this exception.
        description - A textual description of the context the error occurred in.
        Throws:
        NullPointerException - if error is null.
      • AmqpErrorException

        public AmqpErrorException​(String error,
                                  String description)
        Creates a new exception for an error and description.
        Parameters:
        error - The AMQP error to convey in this exception.
        description - A textual description of the context the error occurred in.
        Throws:
        NullPointerException - if error is null.
    • Method Detail

      • from

        public static AmqpErrorException from​(org.apache.qpid.proton.amqp.transport.DeliveryState deliveryState)
        Creates an exception for an AMQP delivery state.
        Parameters:
        deliveryState - The delivery state.
        Returns:
        The exception.
        Throws:
        NullPointerException - if delivery state is null.
      • getError

        public org.apache.qpid.proton.amqp.Symbol getError()
        Gets the AMQP error conveyed in this exception.
        Returns:
        The error.
      • asErrorCondition

        public org.apache.qpid.proton.amqp.transport.ErrorCondition asErrorCondition()
        Gets an AMQP ErrorCondition based on this exception's error and description.
        Returns:
        The condition.