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 55 property is a nested exception.
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
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
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)
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