org.apache.tapestry
Class ApplicationRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.tapestry.ApplicationRuntimeException
All Implemented Interfaces:
Serializable, ILocatable
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 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 243791 2004-02-19 17:38:13Z hlship $
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()