com.cafesoft.core.util
Class MethodInvocationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.cafesoft.core.exception.NestedException
                    |
                    +--com.cafesoft.core.util.MethodInvocationException
All Implemented Interfaces:
Serializable

public class MethodInvocationException
extends NestedException

An exception that is thrown if errors occur invoking a method call dynamically upon an object

Since:
5/2/02
See Also:
Serialized Form

Constructor Summary
MethodInvocationException()
          Construct a new MethodInvocationException with no other information.
MethodInvocationException(String message)
          Construct a new MethodInvocationException for the specified message.
MethodInvocationException(String message, String methodName)
          Construct a new MethodInvocationException for the specified message and method name.
MethodInvocationException(String message, String methodName, Throwable cause)
          Construct a new MethodInvocationException for the specified message and throwable.
MethodInvocationException(String message, Throwable cause)
          Construct a new MethodInvocationException for the specified message and throwable.
MethodInvocationException(Throwable cause)
          Construct a new MethodInvocationException for the specified throwable.
 
Method Summary
 String getMethodName()
          Get the name of the method that caused the MethodInvocationException, if a name is available.
 
Methods inherited from class com.cafesoft.core.exception.NestedException
getCause, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodInvocationException

public MethodInvocationException()
Construct a new MethodInvocationException with no other information.


MethodInvocationException

public MethodInvocationException(String message)
Construct a new MethodInvocationException for the specified message.

Parameters:
message - message describing this exception

MethodInvocationException

public MethodInvocationException(String message,
                                 String methodName)
Construct a new MethodInvocationException for the specified message and method name.

Parameters:
message - message describing this exception
methodName - the name of the method being invoked.

MethodInvocationException

public MethodInvocationException(Throwable cause)
Construct a new MethodInvocationException for the specified throwable.

Parameters:
cause - Throwable that caused this exception

MethodInvocationException

public MethodInvocationException(String message,
                                 Throwable cause)
Construct a new MethodInvocationException for the specified message and throwable.

Parameters:
message - message describing this exception
cause - Throwable that caused this exception

MethodInvocationException

public MethodInvocationException(String message,
                                 String methodName,
                                 Throwable cause)
Construct a new MethodInvocationException for the specified message and throwable.

Parameters:
message - message describing this exception.
methodName - the name of the method being invoked.
cause - Throwable that caused this exception.
Since:
1.2
Method Detail

getMethodName

public String getMethodName()
Get the name of the method that caused the MethodInvocationException, if a name is available.

Returns:
the name of the method that caused the MethodInvocationException, for legacy purposes this value may be null.
Since:
1.2


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.