JFlex

Class ScannerException


public class ScannerException
extends RuntimeException

This Exception could be thrown while scanning the specification (e.g. unmatched input)

Field Summary

int
column
File
file
int
line
ErrorMessages
message

Constructor Summary

ScannerException(File file, ErrorMessages message)
Creates a new ScannerException for a file with a message only.
ScannerException(File file, ErrorMessages message, int line)
Creates a new ScannerException for a file with a message and line number.
ScannerException(File file, ErrorMessages message, int line, int column)
Creates a new ScannerException with a message, line number and column.
ScannerException(ErrorMessages message)
Creates a new ScannerException with a message only.
ScannerException(ErrorMessages message, int line)
Creates a new ScannerException with a message and line number.

Field Details

column

public int column

file

public File file

line

public int line

message

public ErrorMessages message

Constructor Details

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 occured
message - 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.
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,
                        int column)
Creates a new ScannerException with a message, line number and column.
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
column - the column where the error starts

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(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