public class ScannerException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
int |
column |
File |
file |
int |
line |
ErrorMessages |
message |
Constructor and Description |
---|
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.
|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public int line
public int column
public ErrorMessages message
public File file
public ScannerException(ErrorMessages message)
message
- the code for the error description presented to the user.public ScannerException(File file, ErrorMessages message)
file
- the file in which the error occuredmessage
- the code for the error description presented to the user.public ScannerException(ErrorMessages message, int line)
message
- the code for the error description presented to the user.line
- the number of the line in the specification that
contains the errorpublic ScannerException(File file, ErrorMessages message, int line)
message
- the code for the error description presented to the user.line
- the number of the line in the specification that
contains the errorpublic ScannerException(File file, ErrorMessages message, int line, int 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 startsCopyright © 1998–2016. All rights reserved.