public class UnexpectedMethodError extends 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.
|
String |
toString()
Return a string representation of this error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic UnexpectedMethodError(Method method)
method - the unexpected methodCopyright © 2016 Pivotal Software, Inc.. All rights reserved.