JFlex
Class ScannerException
public class ScannerException
extends RuntimeException
This Exception could be thrown while scanning the specification
(e.g. unmatched input)
ScannerException
public ScannerException(File file,
ErrorMessages message) Creates a new ScannerException for a file with a message only.
file - the file in which the error occuredmessage - the code for the error description presented to the user.
ScannerException
public ScannerException(File file,
ErrorMessages message,
int line) Creates a new ScannerException for a file with a message and line number.
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.
message - the code for the error description presented to the user.line - the number of the line in the specification that
contains the errorcolumn - the column where the error starts
ScannerException
public ScannerException(ErrorMessages message)
Creates a new ScannerException with a message only.
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.
message - the code for the error description presented to the user.line - the number of the line in the specification that
contains the error