com.itmill.toolkit.event
Class ListenerMethod.MethodException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.itmill.toolkit.event.ListenerMethod.MethodException
All Implemented Interfaces:
Serializable
Enclosing class:
ListenerMethod

public class ListenerMethod.MethodException
extends RuntimeException

Exception that wraps an exception thrown by an invoked method. When ListenerMethod invokes the target method, it may throw arbitrary exception. The original exception is wrapped into MethodException instance and rethrown by the ListenerMethod.

Since:
3.0
Version:
5.3.0
Author:
IT Mill Ltd.
See Also:
Serialized Form

Method Summary
 Throwable getCause()
          Retrieves the cause of this throwable or null if the cause does not exist or not known.
 String getMessage()
          Returns the error message string of this throwable object.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCause

public Throwable getCause()
Retrieves the cause of this throwable or null if the cause does not exist or not known.

Overrides:
getCause in class Throwable
Returns:
the cause of this throwable or null if the cause is nonexistent or unknown.
See Also:
Throwable.getCause()

getMessage

public String getMessage()
Returns the error message string of this throwable object.

Overrides:
getMessage in class Throwable
Returns:
the error message.
See Also:
Throwable.getMessage()

toString

public String toString()
Overrides:
toString in class Throwable
See Also:
Throwable.toString()


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.