org.apache.tapestry5.ioc.internal.util
public class: TapestryException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.tapestry5.ioc.internal.util.TapestryException
All Implemented Interfaces:
Locatable, Serializable
Direct Known Subclasses:
ComponentEventException, RenderQueueException, TransformationException
Exception class used as a replacement for
java.lang.RuntimeException when the exception is related to a
particular location.
| Constructor: |
public TapestryException(String message,
Throwable cause) {
this(message, cause, cause);
}
Parameters:
message - a message (may be null)
cause - if not null, the root cause of the exception, also used to set the location
|
public TapestryException(String message,
Object location,
Throwable cause) {
this(message, InternalUtils.locationOf(location), cause);
}
Parameters:
message - a message (may be null)
location - implements Location or Locatable
cause - if not null, the root cause of the exception
|
public TapestryException(String message,
Location location,
Throwable cause) {
super(message, cause);
this.location = location;
}
Parameters:
message - a message (may be null)
location - location to associated with the exception, or null if not known
cause - if not null, the root cause of the exception
|
| Method from org.apache.tapestry5.ioc.internal.util.TapestryException Summary: |
|---|
|
getLocation, toString |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.tapestry5.ioc.internal.util.TapestryException Detail: |
public Location getLocation() {
return location;
}
|
public String toString() {
if (location == null) return super.toString();
return String.format("%s [at %s]", super.toString(), location);
}
|