public static class TextFormat.UnknownFieldParseException extends TextFormat.ParseException
Constructor and Description |
---|
TextFormat.UnknownFieldParseException(int line,
int column,
java.lang.String unknownField,
java.lang.String message)
Create a new instance
|
TextFormat.UnknownFieldParseException(java.lang.String message)
Create a new instance, with -1 as the line and column numbers, and an
empty unknown field name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUnknownField()
Return the name of the unknown field encountered while parsing the
protocol buffer string.
|
getColumn, getLine
public TextFormat.UnknownFieldParseException(java.lang.String message)
public TextFormat.UnknownFieldParseException(int line, int column, java.lang.String unknownField, java.lang.String message)
line
- the line number where the parse error occurred,
using 1-offset.column
- the column number where the parser error occurred,
using 1-offset.unknownField
- the name of the unknown field found while parsing.