public class InvalidProtocolBufferException
extends java.io.IOException
Constructor and Description |
---|
InvalidProtocolBufferException(java.io.IOException e) |
InvalidProtocolBufferException(java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
MessageLite |
getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if no message is attached.
|
InvalidProtocolBufferException |
setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort parsing in
Parser interface. |
java.io.IOException |
unwrapIOException()
Unwraps the underlying
IOException if this exception was caused by an I/O problem. |
public InvalidProtocolBufferException(java.lang.String description)
public InvalidProtocolBufferException(java.io.IOException e)
public InvalidProtocolBufferException setUnfinishedMessage(MessageLite unfinishedMessage)
Parser
interface.public MessageLite getUnfinishedMessage()
public java.io.IOException unwrapIOException()
IOException
if this exception was caused by an I/O problem. Otherwise, returns
this
.