public class UnexpectedMethodError extends RuntimeException
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 UnexpectedMethodError 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, setStackTrace
public UnexpectedMethodError(Method method)
method
- the unexpected methodCopyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.