public static class TextFormat.ParseException extends IOExceptionThrown when parsing an invalid text format message.
Constructors
ParseException(int line, int column, String message)
public ParseException(int line, int column, String message)Create a new instance
| Parameters | |
|---|---|
| Name | Description |
line |
intthe line number where the parse error occurred, using 1-offset. |
column |
intthe column number where the parser error occurred, using 1-offset. |
message |
String |
ParseException(String message)
public ParseException(String message)Create a new instance, with -1 as the line and column numbers.
| Parameter | |
|---|---|
| Name | Description |
message |
String |
Methods
getColumn()
public int getColumn()Return the column where the parse exception occurred, or -1 when none is provided. The value is specified as 1-offset, so the first line is line 1.
| Returns | |
|---|---|
| Type | Description |
int |
|
getLine()
public int getLine()Return the line where the parse exception occurred, or -1 when none is provided. The value is specified as 1-offset, so the first line is line 1.
| Returns | |
|---|---|
| Type | Description |
int |
|