Thrown when a protocol message being parsed is invalid in some way, e.g. it contains a malformed varint or a negative byte length.
- Author
- kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda
◆ InvalidProtocolBufferException() [1/2]
com.google.protobuf.InvalidProtocolBufferException.InvalidProtocolBufferException |
( |
final String |
description | ) |
|
|
inline |
◆ InvalidProtocolBufferException() [2/2]
com.google.protobuf.InvalidProtocolBufferException.InvalidProtocolBufferException |
( |
IOException |
e | ) |
|
|
inline |
◆ getUnfinishedMessage()
MessageLite com.google.protobuf.InvalidProtocolBufferException.getUnfinishedMessage |
( |
| ) |
|
|
inline |
Returns the unfinished message attached to the exception, or null if no message is attached.
◆ setUnfinishedMessage()
Attaches an unfinished message to the exception to support best-effort parsing in
interface.
- Returns
- this
◆ unwrapIOException()
IOException com.google.protobuf.InvalidProtocolBufferException.unwrapIOException |
( |
| ) |
|
|
inline |
Unwraps the underlying IOException if this exception was caused by an I/O problem. Otherwise, returns
.
The documentation for this class was generated from the following file: