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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException
(String message) ParseException
(Throwable cause) ParseException
(@NonNull JavaccToken currentTokenVal, int[][] expectedTokenSequencesVal) This constructor is called by Javacc. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected @Nullable FileLocation
location()
withLocation
(FileLocation loc) 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 Details
-
ParseException
-
ParseException
-
ParseException
This constructor is called by Javacc.
-
-
Method Details
-
withLocation
-
withLocation
-
errorKind
- Overrides:
errorKind
in classFileAnalysisException
-
location
- Overrides:
location
in classFileAnalysisException
-