public class SettingsParseException
extends java.io.IOException
Modifier and Type | Field and Description |
---|---|
private int |
columnNumber
The one-based index of the column containing the error.
|
private int |
lineNumber
The one-based index of the line containing the error.
|
Constructor and Description |
---|
SettingsParseException(java.lang.String message,
int lineNumber,
int columnNumber)
Creates a new parser exception with the specified details.
|
SettingsParseException(java.lang.String message,
int lineNumber,
int columnNumber,
java.lang.Throwable cause)
Creates a new parser exception with the specified details.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Gets the one-based index of the column containing the error.
|
int |
getLineNumber()
Gets the one-based index of the line containing the error.
|
private final int lineNumber
private final int columnNumber
public SettingsParseException(java.lang.String message, int lineNumber, int columnNumber)
message
- The error message, may be null
.lineNumber
- The one-based index of the line containing the error or -1
if unknown.columnNumber
- The one-based index of the column containing the error or -1
if unknown.public SettingsParseException(java.lang.String message, int lineNumber, int columnNumber, java.lang.Throwable cause)
message
- The error message, may be null
.lineNumber
- The one-based index of the line containing the error or -1
if unknown.columnNumber
- The one-based index of the column containing the error or -1
if unknown.cause
- The nested cause of this error, may be null
.public int getLineNumber()
public int getColumnNumber()