public class

UnexpectedMethodError

extends Error
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ com.rabbitmq.client.UnexpectedMethodError

Class Overview

Indicates that a Method object was supplied that was not expected. For instance, basicGet(String, boolean) throws this if it receives anything other than AMQP.Basic.GetOk or AMQP.Basic.GetEmpty, and the com.rabbitmq.client.impl.AMQImpl.DefaultMethodVisitor DefaultMethodVisitor throws this as the action within each visitor case.

Summary

Public Constructors
UnexpectedMethodError(Method method)
Construct an UnexpecteMethodError with the given method parameter
Public Methods
Method getMethod()
Return the wrapped method.
String toString()
Return a string representation of this error.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public UnexpectedMethodError (Method method)

Construct an UnexpecteMethodError with the given method parameter

Parameters
method the unexpected method

Public Methods

public Method getMethod ()

Return the wrapped method.

Returns
  • the method whose appearance was "unexpected" and was deemed an error

public String toString ()

Return a string representation of this error.

Returns
  • a string describing the error