Package jflex
Class ScannerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jflex.ScannerException
-
- All Implemented Interfaces:
java.io.Serializable
public class ScannerException extends java.lang.RuntimeException
This Exception could be thrown while scanning the specification (e.g. unmatched input)- Version:
- JFlex 1.7.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
column
java.io.File
file
int
line
ErrorMessages
message
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
ScannerException(java.io.File file, java.lang.String text, ErrorMessages message, int line, int column)
ScannerException(java.io.File file, ErrorMessages message)
Creates a new ScannerException for a file with a message only.ScannerException(java.io.File file, ErrorMessages message, int line)
Creates a new ScannerException for a file with a message and line number.ScannerException(java.io.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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
line
public int line
-
column
public int column
-
message
public ErrorMessages message
-
file
public java.io.File file
-
-
Constructor Detail
-
ScannerException
private ScannerException(java.io.File file, java.lang.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(java.io.File file, ErrorMessages message)
Creates a new ScannerException for a file with a message only.- Parameters:
file
- the file in which the error occurredmessage
- 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(java.io.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 errorfile
- aFile
object.
-
ScannerException
public ScannerException(java.io.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 errorcolumn
- the column where the error startsfile
- aFile
object.
-
-