Package com.rabbitmq.client
Class UnroutableRpcRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.rabbitmq.client.UnroutableRpcRequestException
-
- All Implemented Interfaces:
Serializable
public class UnroutableRpcRequestException extends RuntimeException
Exception thrown when a RPC request isn't routed to any queue.The
RpcClientmust be configured with the mandatory flag set to true withRpcClientParams.useMandatory().- Since:
- 4.10.0
- See Also:
RpcClientParams.useMandatory(),RpcClient(RpcClientParams), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnroutableRpcRequestException(int replyCode, String replyText, String exchange, String routingKey, AMQP.BasicProperties properties, byte[] body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBody()StringgetExchange()AMQP.BasicPropertiesgetProperties()intgetReplyCode()StringgetReplyText()StringgetRoutingKey()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnroutableRpcRequestException
public UnroutableRpcRequestException(int replyCode, String replyText, String exchange, String routingKey, AMQP.BasicProperties properties, byte[] body)
-
-
Method Detail
-
getReplyCode
public int getReplyCode()
-
getReplyText
public String getReplyText()
-
getExchange
public String getExchange()
-
getRoutingKey
public String getRoutingKey()
-
getProperties
public AMQP.BasicProperties getProperties()
-
getBody
public byte[] getBody()
-
-