Class TapestryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.tapestry5.commons.internal.util.TapestryException
- All Implemented Interfaces:
Serializable
,Locatable
- Direct Known Subclasses:
CoercionFailedException
,ComponentEventException
,DifferentClassVersionsException
,FormsRequirePostException
,OperationException
,RenderQueueException
,UnknownValueException
Exception class used as a replacement for
RuntimeException
when the exception is related to a
particular location.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTapestryException
(String message, Object location, Throwable cause) TapestryException
(String message, Throwable cause) TapestryException
(String message, Location location, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturns the location associated with this object for error reporting purposes.toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
TapestryException
-
TapestryException
- Parameters:
message
- a message (may be null)cause
- if not null, the root cause of the exception, also used to set the location
-
TapestryException
- Parameters:
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 exception
-
-
Method Details
-
getLocation
Description copied from interface:Locatable
Returns the location associated with this object for error reporting purposes.- Specified by:
getLocation
in interfaceLocatable
-
toString
-