Package jflex.scanner

Class ScannerException

All Implemented Interfaces:
Serializable

public class ScannerException extends RuntimeException
This Exception could be thrown while scanning the specification (e.g. unmatched input)
Version:
JFlex 1.9.1
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • line

      public int line
    • column

      public int column
    • message

      public ErrorMessages message
    • file

      public File file
  • Constructor Details

    • ScannerException

      private ScannerException(File file, String text, ErrorMessages message, int line, int column)
    • ScannerException

      public ScannerException(ErrorMessages message)
      Creates a new ScannerException with a message only.
      Parameters:
      message - the code for the error description presented to the user.
    • ScannerException

      public ScannerException(File file, ErrorMessages message)
      Creates a new ScannerException for a file with a message only.
      Parameters:
      file - the file in which the error occurred
      message - the code for the error description presented to the user.
    • ScannerException

      public ScannerException(ErrorMessages message, int line)
      Creates a new ScannerException with a message and line number.
      Parameters:
      message - the code for the error description presented to the user.
      line - the number of the line in the specification that contains the error
    • ScannerException

      public ScannerException(File file, ErrorMessages message, int line)
      Creates a new ScannerException for a file with a message and line number.
      Parameters:
      file - a File object.
      message - the code for the error description presented to the user.
      line - the number of the line in the specification that contains the error
    • ScannerException

      public ScannerException(File file, ErrorMessages message, int line, int column)
      Creates a new ScannerException with a message, line number and column.
      Parameters:
      file - a File object.
      message - the code for the error description presented to the user.
      line - the number of the line in the specification that contains the error
      column - the column where the error starts