throw new AMQInvalidRoutingKeyException(String.valueOf(reason), null);
}
else
{
throw new AMQChannelClosedException(errorCode, "Error: " + reason, null);
}
}
// fixme why is this only done when the close is expected...
// should the above forced closes not also cause a close?