rabbit_exchange_type:validate_binding/2.
Take advantage of the new mechanism to validate x-match.
Move the check inside the tx - this means we only lookup the exchange once and there's no possible race. It means we have to convert the exception to an {error, #amqp_error{}} which then gets converted back to an exception, but never mind...
Push protocol errors closer to the edge.
move spec expansion to right place
merge bug25488 into default