Package jflex.scanner
Class ScannerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jflex.scanner.ScannerException
- All Implemented Interfaces:
Serializable
This Exception could be thrown while scanning the specification (e.g. unmatched input)
- Version:
- JFlex 1.8.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
private static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ScannerException
(File file, String text, ErrorMessages.ErrorMessage message, int line, int column) ScannerException
(File file, ErrorMessages.ErrorMessage message) Creates a new ScannerException for a file with a message only.ScannerException
(File file, ErrorMessages.ErrorMessage message, int line) Creates a new ScannerException for a file with a message and line number.ScannerException
(File file, ErrorMessages.ErrorMessage message, int line, int column) Creates a new ScannerException with a message, line number and column.Creates a new ScannerException with a message only.ScannerException
(ErrorMessages.ErrorMessage message, int line) Creates a new ScannerException with a message and line number. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
line
public int line -
column
public int column -
message
-
file
-
-
Constructor Details
-
ScannerException
private ScannerException(File file, String text, ErrorMessages.ErrorMessage message, int line, int column) -
ScannerException
Creates a new ScannerException with a message only.- Parameters:
message
- the code for the error description presented to the user.
-
ScannerException
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
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
Creates a new ScannerException for a file with a message and line number.- Parameters:
file
- aFile
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
Creates a new ScannerException with a message, line number and column.- Parameters:
file
- aFile
object.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
-