Package net.sourceforge.pmd.lang.ast
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.lang3.exception.ContextedRuntimeException
-
- net.sourceforge.pmd.lang.ast.FileAnalysisException
-
- net.sourceforge.pmd.lang.ast.ParseException
-
- All Implemented Interfaces:
Serializable
,org.apache.commons.lang3.exception.ExceptionContext
public class ParseException extends FileAnalysisException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseException(@NonNull JavaccToken currentTokenVal, int[][] expectedTokenSequencesVal)
This constructor is called by Javacc.ParseException(String message)
ParseException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
errorKind()
protected @Nullable FileLocation
location()
ParseException
withLocation(FileLocation loc)
ParseException
withLocation(Reportable reportable)
-
Methods inherited from class net.sourceforge.pmd.lang.ast.FileAnalysisException
getFileId, getMessage, hasFileName, setFileId, wrap
-
Methods inherited from class org.apache.commons.lang3.exception.ContextedRuntimeException
addContextValue, getContextEntries, getContextLabels, getContextValues, getFirstContextValue, getFormattedExceptionMessage, getRawMessage, setContextValue
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ParseException
public ParseException(String message)
-
ParseException
public ParseException(Throwable cause)
-
ParseException
public ParseException(@NonNull JavaccToken currentTokenVal, int[][] expectedTokenSequencesVal)
This constructor is called by Javacc.
-
-
Method Detail
-
withLocation
public ParseException withLocation(FileLocation loc)
-
withLocation
public ParseException withLocation(Reportable reportable)
-
errorKind
protected String errorKind()
- Overrides:
errorKind
in classFileAnalysisException
-
location
protected @Nullable FileLocation location()
- Overrides:
location
in classFileAnalysisException
-
-