Qpid
  1. Qpid
  2. QPID-3837

[Java broker] improve exception message when attempt is made to redeclare an exchange with a different type on a 0-10 connection

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.14
    • Fix Version/s: 0.15
    • Component/s: Java Broker
    • Labels:
      None

      Description

      Improve exception message when attempt is made to redeclare an exchange with a different type on a 0-10 connection.

      Curently when attempting to do so the exception is fairly vauge, saying "Cannot redeclare with a different exchange type", whereas the equivalent message for 0-9-1 connections is something more helpful like: "Attempt to redeclare exchange: amq.topic of type topic to fanout". The 0-10 message should be brought in line with the 0-9-1 message for clarity and consistency.

        Activity

        Hide
        Keith Wall added a comment -

        Look reasonable to me.

        Show
        Keith Wall added a comment - Look reasonable to me.
        Hide
        Robbie Gemmell added a comment -

        Keith, could you review this change please?

        Thanks,
        Robbie

        Show
        Robbie Gemmell added a comment - Keith, could you review this change please? Thanks, Robbie

          People

          • Assignee:
            Keith Wall
            Reporter:
            Robbie Gemmell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development