Package net.sourceforge.pmd.lang.vm.ast
Class MacroParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sourceforge.pmd.lang.ast.ParseException
-
- net.sourceforge.pmd.lang.vm.ast.ParseException
-
- net.sourceforge.pmd.lang.vm.ast.MacroParseException
-
- All Implemented Interfaces:
Serializable
@Deprecated public class MacroParseException extends ParseException
Deprecated.for removal in PMD 7.0.0Exception to indicate problem happened while constructing #macro() For internal use in parser - not to be passed to app level- Version:
- $Id: MacroParseException.java 735709 2009-01-19 14:30:03Z byron $
- Author:
- Geir Magnusson Jr., Henning P. Schmiedehausen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.vm.ast.ParseException
currentToken, eol, expectedTokenSequences, tokenImage
-
-
Constructor Summary
Constructors Constructor Description MacroParseException(String msg, String templateName, Token currentToken)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
appendTemplateInfo(StringBuffer sb)
Deprecated.int
getColumnNumber()
Deprecated.returns the column number where this exception occurred.int
getLineNumber()
Deprecated.returns the line number where this exception occurred.String
getMessage()
Deprecated.This method has the standard behavior when this object has been created using the standard constructors.String
getTemplateName()
Deprecated.returns the Template name where this exception occurred.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getTemplateName
public String getTemplateName()
Deprecated.returns the Template name where this exception occurred.- Returns:
- The Template name where this exception occurred.
- Since:
- 1.5
-
getLineNumber
public int getLineNumber()
Deprecated.returns the line number where this exception occurred.- Returns:
- The line number where this exception occurred.
- Since:
- 1.5
-
getColumnNumber
public int getColumnNumber()
Deprecated.returns the column number where this exception occurred.- Returns:
- The column number where this exception occurred.
- Since:
- 1.5
-
getMessage
public String getMessage()
Deprecated.This method has the standard behavior when this object has been created using the standard constructors. Otherwise, it uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it. If this object has been created due to a parse error, and you do not catch it (it gets thrown from the parser), then this method is called during the printing of the final stack trace, and hence the correct error message gets displayed.- Overrides:
getMessage
in classThrowable
- Returns:
- the current message.
- Since:
- 1.5
-
appendTemplateInfo
protected void appendTemplateInfo(StringBuffer sb)
Deprecated.- Parameters:
sb
-- Since:
- 1.5
-
-