Package com.google.protobuf
Class TextFormat.UnknownFieldParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.google.protobuf.TextFormat.ParseException
-
- com.google.protobuf.TextFormat.UnknownFieldParseException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- TextFormat
@Deprecated public static class TextFormat.UnknownFieldParseException extends TextFormat.ParseException
Deprecated.This exception is unused and will be removed in the next breaking release (v5.x.x).Obsolete exception, once thrown when encountering an unknown field while parsing a text format message.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnknownFieldParseException(int line, int column, java.lang.String unknownField, java.lang.String message)
Deprecated.Create a new instanceUnknownFieldParseException(java.lang.String message)
Deprecated.Create a new instance, with -1 as the line and column numbers, and an empty unknown field name.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getUnknownField()
Deprecated.Return the name of the unknown field encountered while parsing the protocol buffer string.-
Methods inherited from class com.google.protobuf.TextFormat.ParseException
getColumn, getLine
-
-
-
-
Constructor Detail
-
UnknownFieldParseException
public UnknownFieldParseException(java.lang.String message)
Deprecated.Create a new instance, with -1 as the line and column numbers, and an empty unknown field name.
-
UnknownFieldParseException
public UnknownFieldParseException(int line, int column, java.lang.String unknownField, java.lang.String message)
Deprecated.Create a new instance- Parameters:
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.
-
-