Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind
Class ApplicationRuntimeException  view ApplicationRuntimeException download ApplicationRuntimeException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.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 55 property is a nested exception.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.Object _component
           
private  Location _location
           
private  java.lang.Throwable _rootCause
           
private static long serialVersionUID
           
 
Fields inherited from class java.lang.Throwable
 
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.Throwable getCause()
          This method is for compatibility with JDK 1.4.
 java.lang.Object getComponent()
           
 Location getLocation()
          Returns the location from which this object orginates, or null if not known.
 java.lang.Throwable getRootCause()
           
 java.lang.String toString()
          Overrides the default implementation of toString, suffixing the normal result with the location 55 of the exception (if non null).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

_rootCause

private java.lang.Throwable _rootCause

_location

private transient Location _location

_component

private transient java.lang.Object _component
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()

getCause

public java.lang.Throwable getCause()
This method is for compatibility with JDK 1.4. Under 1.4, this will look like an override, allowing printStackTrace() to descending into the root cause exception and print its stack trace too.


toString

public java.lang.String toString()
Overrides the default implementation of toString, suffixing the normal result with the location 55 of the exception (if non null). Example: org.apache.hivemind.ApplicationRuntimeException: Exception Message [file:foo/bar/baz, line 13].

Since:
1.1