org.jboss.util
Class NoSuchMethodException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.NoSuchMethodException
              extended byorg.jboss.util.NoSuchMethodException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchMethodException
extends java.lang.NoSuchMethodException

A better NoSuchMethodException which can take a Method object and formats the detail message based on in.

See Also:
Serialized Form

Constructor Summary
NoSuchMethodException()
          Construct a NoSuchMethodException with no detail.
NoSuchMethodException(java.lang.reflect.Method method)
          Construct a NoSuchMethodException using the given method object to construct the detail message.
NoSuchMethodException(java.lang.String msg)
          Construct a NoSuchMethodException with the specified detail message.
NoSuchMethodException(java.lang.String msg, java.lang.reflect.Method method)
          Construct a NoSuchMethodException using the given method object to construct the detail message.
 
Method Summary
static java.lang.String format(java.lang.reflect.Method method)
          Return a string representation of the given method object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchMethodException

public NoSuchMethodException(java.lang.String msg)
Construct a NoSuchMethodException with the specified detail message.

Parameters:
msg - Detail message.

NoSuchMethodException

public NoSuchMethodException(java.lang.reflect.Method method)
Construct a NoSuchMethodException using the given method object to construct the detail message.

Parameters:
method - Method to determine detail message from.

NoSuchMethodException

public NoSuchMethodException(java.lang.String msg,
                             java.lang.reflect.Method method)
Construct a NoSuchMethodException using the given method object to construct the detail message.

Parameters:
msg - Detail message prefix.
method - Method to determine detail message suffix from.

NoSuchMethodException

public NoSuchMethodException()
Construct a NoSuchMethodException with no detail.

Method Detail

format

public static java.lang.String format(java.lang.reflect.Method method)
Return a string representation of the given method object.