public class TapestryException extends java.lang.RuntimeException implements Locatable
RuntimeException
when the exception is related to a
particular location.Constructor and Description |
---|
TapestryException(java.lang.String message,
Location location,
java.lang.Throwable cause) |
TapestryException(java.lang.String message,
java.lang.Object location,
java.lang.Throwable cause) |
TapestryException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Returns the location associated with this object for error reporting purposes.
|
java.lang.String |
toString() |
public TapestryException(java.lang.String message, java.lang.Object location, java.lang.Throwable cause)
public TapestryException(java.lang.String message, java.lang.Throwable cause)
message
- a message (may be null)cause
- if not null, the root cause of the exception, also used to set the locationpublic TapestryException(java.lang.String message, Location location, java.lang.Throwable cause)
message
- a message (may be null)location
- location to associated with the exception, or null if not knowncause
- if not null, the root cause of the exceptionpublic Location getLocation()
Locatable
getLocation
in interface Locatable
public java.lang.String toString()
toString
in class java.lang.Throwable
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.