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
public class JellyException extends Exception implements LocationAware
JellyException
is the root of all Jelly exceptions.- Version:
- $Revision: 429129 $
- Author:
- James Strachan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JellyException()
JellyException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
int
getColumnNumber()
String
getElementName()
String
getFileName()
int
getLineNumber()
String
getMessage()
String
getReason()
void
printStackTrace()
void
printStackTrace(PrintStream s)
void
printStackTrace(PrintWriter s)
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 tag-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JellyException
public JellyException()
-
JellyException
public JellyException(String message)
-
JellyException
public JellyException(Throwable cause)
-
JellyException
public JellyException(Throwable cause, String fileName, String elementName, int columnNumber, int lineNumber)
-
JellyException
public JellyException(String reason, Throwable cause, String fileName, String elementName, int columnNumber, int lineNumber)
-
-
Method Detail
-
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
public String getFileName()
- Specified by:
getFileName
in interfaceLocationAware
- Returns:
- the Jelly file which caused the problem
-
setFileName
public void setFileName(String fileName)
Sets the Jelly file which caused the problem- Specified by:
setFileName
in interfaceLocationAware
-
getElementName
public String getElementName()
- Specified by:
getElementName
in interfaceLocationAware
- Returns:
- the element name which caused the problem
-
setElementName
public void setElementName(String elementName)
Sets the element name which caused the problem- Specified by:
setElementName
in interfaceLocationAware
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getReason
public String getReason()
-
printStackTrace
public void printStackTrace(PrintWriter s)
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace(PrintStream s)
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in classThrowable
-
-