Package com.rabbitmq.client
Class UnexpectedMethodError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- com.rabbitmq.client.UnexpectedMethodError
-
- All Implemented Interfaces:
Serializable
public class UnexpectedMethodError extends Error
Indicates that aMethod
object was supplied that was not expected. For instance,Channel.basicGet(java.lang.String, boolean)
throws this if it receives anything other thanAMQP.Basic.GetOk
orAMQP.Basic.GetEmpty
, and theDefaultMethodVisitor
throws this as the action within each visitor case.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedMethodError(Method method)
Construct an UnexpecteMethodError with the given method parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Method
getMethod()
Return the wrapped method.String
toString()
Return a string representation of this error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
UnexpectedMethodError
public UnexpectedMethodError(Method method)
Construct an UnexpecteMethodError with the given method parameter- Parameters:
method
- the unexpected method
-
-