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.9 2004/01/19 21:32:10 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
 Throwable getCause()
           
 Object getComponent()
           
 ILocation getLocation()
          Returns the location from which this object orginates, or null if not known.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

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

getCause

public Throwable getCause()
Overrides:
getCause in class Throwable

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()