org.apache.hivemind
Class ApplicationRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.apache.hivemind.ApplicationRuntimeException
All Implemented Interfaces:
Locatable, java.io.Serializable

public class ApplicationRuntimeException
extends java.lang.RuntimeException
implements Locatable

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.

Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
ApplicationRuntimeException(java.lang.String message)
           
ApplicationRuntimeException(java.lang.String message, Location location, java.lang.Throwable rootCause)
           
ApplicationRuntimeException(java.lang.String message, java.lang.Object component, Location location, java.lang.Throwable rootCause)
           
ApplicationRuntimeException(java.lang.String message, java.lang.Throwable rootCause)
           
ApplicationRuntimeException(java.lang.Throwable rootCause)
           
 
Method Summary
 java.lang.Object getComponent()
           
 Location getLocation()
          Returns the location from which this object orginates, or null if not known.
 java.lang.Throwable getRootCause()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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(java.lang.Throwable rootCause)

ApplicationRuntimeException

public ApplicationRuntimeException(java.lang.String message)

ApplicationRuntimeException

public ApplicationRuntimeException(java.lang.String message,
                                   java.lang.Throwable rootCause)

ApplicationRuntimeException

public ApplicationRuntimeException(java.lang.String message,
                                   java.lang.Object component,
                                   Location location,
                                   java.lang.Throwable rootCause)

ApplicationRuntimeException

public ApplicationRuntimeException(java.lang.String message,
                                   Location location,
                                   java.lang.Throwable rootCause)
Method Detail

getRootCause

public java.lang.Throwable getRootCause()

getLocation

public Location getLocation()
Description copied from interface: Locatable
Returns the location from which this object orginates, or null if not known.

Specified by:
getLocation in interface Locatable

getComponent

public java.lang.Object getComponent()