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:
  • Constructor Details

    • JellyException

      public JellyException()
    • JellyException

      public JellyException(String message)
    • JellyException

      public JellyException(String message, Throwable cause)
    • 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)
    • JellyException

      public JellyException(String reason, String fileName, String elementName, int columnNumber, int lineNumber)
  • Method Details

    • getLineNumber

      public int getLineNumber()
      Specified by:
      getLineNumber in interface LocationAware
      Returns:
      the line number of the tag
    • setLineNumber

      public void setLineNumber(int lineNumber)
      Sets the line number of the tag
      Specified by:
      setLineNumber in interface LocationAware
    • getColumnNumber

      public int getColumnNumber()
      Specified by:
      getColumnNumber in interface LocationAware
      Returns:
      the column number of the tag
    • setColumnNumber

      public void setColumnNumber(int columnNumber)
      Sets the column number of the tag
      Specified by:
      setColumnNumber in interface LocationAware
    • getFileName

      public String getFileName()
      Specified by:
      getFileName in interface LocationAware
      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 interface LocationAware
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface LocationAware
      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 interface LocationAware
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getReason

      public String getReason()