ARTEMIS-2519: Use proper enum type inside ActiveMQUnexpectedRoutingTypeForAddress

This commit is contained in:
Christopher L. Shannon (cshannon) 2019-10-11 13:22:55 -04:00
parent 714e31babf
commit a74036361d
1 changed files with 2 additions and 2 deletions

View File

@ -22,10 +22,10 @@ package org.apache.activemq.artemis.api.core;
public final class ActiveMQUnexpectedRoutingTypeForAddress extends ActiveMQException {
public ActiveMQUnexpectedRoutingTypeForAddress() {
super(ActiveMQExceptionType.MAX_CONSUMER_LIMIT_EXCEEDED);
super(ActiveMQExceptionType.UNEXPECTED_ROUTING_TYPE_FOR_ADDRESS);
}
public ActiveMQUnexpectedRoutingTypeForAddress(String msg) {
super(ActiveMQExceptionType.MAX_CONSUMER_LIMIT_EXCEEDED, msg);
super(ActiveMQExceptionType.UNEXPECTED_ROUTING_TYPE_FOR_ADDRESS, msg);
}
}