Package org.apache.commons.jelly
Class JellyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.jelly.JellyException
- All Implemented Interfaces:
Serializable
,LocationAware
- Direct Known Subclasses:
JellyTagException
JellyException
is the root of all Jelly exceptions.
- Version:
- $Revision: 429129 $
- Author:
- James Strachan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJellyException
(String message) JellyException
(String reason, String fileName, String elementName, int columnNumber, int lineNumber) JellyException
(String message, Throwable cause) JellyException
(String reason, Throwable cause, String fileName, String elementName, int columnNumber, int lineNumber) JellyException
(Throwable cause) JellyException
(Throwable cause, String fileName, String elementName, int columnNumber, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
int
int
void
void
void
void
setColumnNumber
(int columnNumber) Sets the column number of the tagvoid
setElementName
(String elementName) Sets the element name which caused the problemvoid
setFileName
(String fileName) Sets the Jelly file which caused the problemvoid
setLineNumber
(int lineNumber) Sets the line number of the tagMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
JellyException
public JellyException() -
JellyException
-
JellyException
-
JellyException
-
JellyException
-
JellyException
-
JellyException
-
-
Method Details
-
getCause
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceLocationAware
- Returns:
- the line number of the tag
-
setLineNumber
public void setLineNumber(int lineNumber) Sets the line number of the tag- Specified by:
setLineNumber
in interfaceLocationAware
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumber
in interfaceLocationAware
- Returns:
- the column number of the tag
-
setColumnNumber
public void setColumnNumber(int columnNumber) Sets the column number of the tag- Specified by:
setColumnNumber
in interfaceLocationAware
-
getFileName
- Specified by:
getFileName
in interfaceLocationAware
- Returns:
- the Jelly file which caused the problem
-
setFileName
Sets the Jelly file which caused the problem- Specified by:
setFileName
in interfaceLocationAware
-
getElementName
- Specified by:
getElementName
in interfaceLocationAware
- Returns:
- the element name which caused the problem
-
setElementName
Sets the element name which caused the problem- Specified by:
setElementName
in interfaceLocationAware
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getReason
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace()- Overrides:
printStackTrace
in classThrowable
-