org.apache.tapestry
Class ApplicationRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.apache.tapestry.ApplicationRuntimeException
All Implemented Interfaces:
ILocatable, Serializable
Direct Known Subclasses:
BindingException, ConnectedParameterException, DocumentParseException, PageRedirectException, RedirectException, RenderRewoundException, StaleLinkException, StaleSessionException

public class ApplicationRuntimeException
extends RuntimeException
implements ILocatable

General wrapper for any exception (normal or runtime) that may occur during runtime processing for the application. This is exception is used when the intent is to communicate a low-level failure to the user or developer; it is not expected to be caught. The rootCause property is a nested exception (Tapestry supported this concept long before the JDK did).

Version:
$Id: ApplicationRuntimeException.java,v 1.6 2003/08/06 14:28:48 hlship Exp $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
ApplicationRuntimeException(String message)
           
ApplicationRuntimeException(String message, ILocation location, Throwable rootCause)
           
ApplicationRuntimeException(String message, Object component, ILocation location, Throwable rootCause)
           
ApplicationRuntimeException(String message, Throwable rootCause)
           
ApplicationRuntimeException(Throwable rootCause)
           
 
Method Summary
 Object getComponent()
           
 ILocation getLocation()
          Returns the location from which this object orginates, or null if not known.
 Throwable getRootCause()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationRuntimeException

public ApplicationRuntimeException(Throwable rootCause)

ApplicationRuntimeException

public ApplicationRuntimeException(String message)

ApplicationRuntimeException

public ApplicationRuntimeException(String message,
                                   Throwable rootCause)

ApplicationRuntimeException

public ApplicationRuntimeException(String message,
                                   Object component,
                                   ILocation location,
                                   Throwable rootCause)

ApplicationRuntimeException

public ApplicationRuntimeException(String message,
                                   ILocation location,
                                   Throwable rootCause)
Method Detail

getRootCause

public Throwable getRootCause()

getLocation

public ILocation getLocation()
Description copied from interface: ILocatable
Returns the location from which this object orginates, or null if not known.
Specified by:
getLocation in interface ILocatable

getComponent

public Object getComponent()