public class ApplicationRuntimeException extends java.lang.RuntimeException implements Locatable
rootCause
property is a nested exception.Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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 of the exception (if non null). |
public ApplicationRuntimeException(java.lang.Throwable rootCause)
public ApplicationRuntimeException(java.lang.String message)
public ApplicationRuntimeException(java.lang.String message, java.lang.Throwable rootCause)
public ApplicationRuntimeException(java.lang.String message, java.lang.Object component, Location location, java.lang.Throwable rootCause)
public ApplicationRuntimeException(java.lang.String message, Location location, java.lang.Throwable rootCause)
public java.lang.Throwable getRootCause()
public Location getLocation()
Locatable
location
from which
this object orginates, or null if not known.getLocation
in interface Locatable
public java.lang.Object getComponent()
public java.lang.Throwable getCause()
printStackTrace()
to descending into the root cause exception and
print its stack trace too.getCause
in class java.lang.Throwable
public java.lang.String toString()
toString
, suffixing the normal result
with the location
of the exception (if non null). Example:
org.apache.hivemind.ApplicationRuntimeException: Exception Message [file:foo/bar/baz, line 13]
.toString
in class java.lang.Throwable