public class InvalidProtocolBufferException
extends java.io.IOException
Modifier and Type | Class and Description |
---|---|
static class |
InvalidProtocolBufferException.InvalidWireTypeException
Exception indicating that and unexpected wire type was encountered for a field.
|
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private MessageLite |
unfinishedMessage |
Constructor and Description |
---|
InvalidProtocolBufferException(java.io.IOException e) |
InvalidProtocolBufferException(java.lang.String description) |
InvalidProtocolBufferException(java.lang.String description,
java.io.IOException e) |
Modifier and Type | Method and Description |
---|---|
MessageLite |
getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if
no message is attached.
|
(package private) static InvalidProtocolBufferException |
invalidEndTag() |
(package private) static InvalidProtocolBufferException |
invalidTag() |
(package private) static InvalidProtocolBufferException |
invalidUtf8() |
(package private) static InvalidProtocolBufferException.InvalidWireTypeException |
invalidWireType() |
(package private) static InvalidProtocolBufferException |
malformedVarint() |
(package private) static InvalidProtocolBufferException |
negativeSize() |
(package private) static InvalidProtocolBufferException |
parseFailure() |
(package private) static InvalidProtocolBufferException |
recursionLimitExceeded() |
InvalidProtocolBufferException |
setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort
parsing in
Parser interface. |
(package private) static InvalidProtocolBufferException |
sizeLimitExceeded() |
(package private) static InvalidProtocolBufferException |
truncatedMessage() |
java.io.IOException |
unwrapIOException()
Unwraps the underlying
IOException if this exception was caused by an I/O
problem. |
private static final long serialVersionUID
private MessageLite unfinishedMessage
public InvalidProtocolBufferException(java.lang.String description)
public InvalidProtocolBufferException(java.io.IOException e)
public InvalidProtocolBufferException(java.lang.String description, 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
.static InvalidProtocolBufferException truncatedMessage()
static InvalidProtocolBufferException negativeSize()
static InvalidProtocolBufferException malformedVarint()
static InvalidProtocolBufferException invalidTag()
static InvalidProtocolBufferException invalidEndTag()
static InvalidProtocolBufferException.InvalidWireTypeException invalidWireType()
static InvalidProtocolBufferException recursionLimitExceeded()
static InvalidProtocolBufferException sizeLimitExceeded()
static InvalidProtocolBufferException parseFailure()
static InvalidProtocolBufferException invalidUtf8()