Class LexException

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.LexException
All Implemented Interfaces:
Serializable, org.apache.commons.lang3.exception.ExceptionContext

public final class LexException extends FileAnalysisException
An error thrown during lexical analysis of a file.

Note: This exception has been called TokenMgrError in PMD 6.

See Also:
  • Constructor Details

    • LexException

      public LexException(int line, int column, @Nullable FileId filename, String message, @Nullable Throwable cause)
      Create a new exception.
      Parameters:
      line - Line number
      column - Column number
      filename - Filename. If unknown, it can be completed with setFileId(FileId)} later
      message - Message of the error
      cause - Cause of the error, if any
  • Method Details