Class MalformedSourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sourceforge.pmd.lang.ast.FileAnalysisException
-
- net.sourceforge.pmd.lang.ast.impl.javacc.MalformedSourceException
-
- All Implemented Interfaces:
Serializable
public class MalformedSourceException extends FileAnalysisException
AFileAnalysisException
thrown when the source format is invalid, for example if some unicode escapes cannot be translated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MalformedSourceException(String message, Throwable cause, FileLocation fileLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
errorKind()
protected @NonNull FileLocation
location()
-
Methods inherited from class net.sourceforge.pmd.lang.ast.FileAnalysisException
getFileId, getMessage, hasFileName, setFileId, wrap
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MalformedSourceException
public MalformedSourceException(String message, Throwable cause, FileLocation fileLocation)
-
-
Method Detail
-
location
protected @NonNull FileLocation location()
- Overrides:
location
in classFileAnalysisException
-
errorKind
protected String errorKind()
- Overrides:
errorKind
in classFileAnalysisException
-
-