public class TapestryException extends RuntimeException implements Locatable
RuntimeException
when the exception is related to a
particular location.Constructor and Description |
---|
TapestryException(String message,
Location location,
Throwable cause) |
TapestryException(String message,
Object location,
Throwable cause) |
TapestryException(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Returns the location associated with this object for error reporting purposes.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public TapestryException(String message, Object location, Throwable cause)
public TapestryException(String message, 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(String message, Location location, 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
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.