Class 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:
    Serialized Form
    • Constructor Detail

      • 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