JBoss Common Classes 2.2.17.GA

org.jboss.util
Class NoSuchMethodException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.NoSuchMethodException
              extended by org.jboss.util.NoSuchMethodException
All Implemented Interfaces:
Serializable

public class NoSuchMethodException
extends NoSuchMethodException

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

Version:
$Revision: 2800 $
Author:
Jason Dillon
See Also:
Serialized Form

Constructor Summary
NoSuchMethodException()
          Construct a NoSuchMethodException with no detail.
NoSuchMethodException(Method method)
          Construct a NoSuchMethodException using the given method object to construct the detail message.
NoSuchMethodException(String msg)
          Construct a NoSuchMethodException with the specified detail message.
NoSuchMethodException(String msg, Method method)
          Construct a NoSuchMethodException using the given method object to construct the detail message.
 
Method Summary
static String format(Method method)
           
 
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(String msg)
Construct a NoSuchMethodException with the specified detail message.

Parameters:
msg - Detail message.

NoSuchMethodException

public NoSuchMethodException(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(String msg,
                             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 String format(Method method)

JBoss Common Classes 2.2.17.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.