public class InvalidProtocolBufferException extends IOException
| Constructor and Description |
|---|
InvalidProtocolBufferException(IOException e) |
InvalidProtocolBufferException(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. |
IOException |
unwrapIOException()
Unwraps the underlying
IOException if this exception was caused by an I/O problem. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toStringpublic InvalidProtocolBufferException(IOException e)
@Nullable public MessageLite getUnfinishedMessage()
public InvalidProtocolBufferException setUnfinishedMessage(MessageLite unfinishedMessage)
Parser interface.public IOException unwrapIOException()
IOException if this exception was caused by an I/O problem. Otherwise, returns
this.