com.rabbitmq.client
public class UnexpectedMethodError extends java.lang.Error
Method
object was supplied that was not
expected. For instance, Channel.basicGet(java.lang.String, boolean)
throws this if it
receives anything other than AMQP.Basic.GetOk
or
AMQP.Basic.GetEmpty
, and the
DefaultMethodVisitor
throws this as the action within each visitor case.Constructor and Description |
---|
UnexpectedMethodError(Method method)
Construct an UnexpecteMethodError with the given method parameter
|
Modifier and Type | Method and Description |
---|---|
Method |
getMethod()
Return the wrapped method.
|
java.lang.String |
toString()
Return a string representation of this error.
|
public UnexpectedMethodError(Method method)
method
- the unexpected methodpublic java.lang.String toString()
toString
in class java.lang.Throwable
public Method getMethod()