public class InvalidProtocolBufferException extends IOException
Modifier and Type | Class and Description |
---|---|
static class |
InvalidProtocolBufferException.InvalidWireTypeException
Exception indicating that and unexpected wire type was encountered for a field.
|
Constructor and Description |
---|
InvalidProtocolBufferException(IOException e) |
InvalidProtocolBufferException(String description) |
InvalidProtocolBufferException(String description,
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.
|
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, printStackTrace, setStackTrace, toString
public InvalidProtocolBufferException(String description)
public InvalidProtocolBufferException(IOException e)
public InvalidProtocolBufferException(String description, IOException e)
public InvalidProtocolBufferException setUnfinishedMessage(MessageLite unfinishedMessage)
Parser
interface.public MessageLite getUnfinishedMessage()
public IOException unwrapIOException()
IOException
if this exception was caused by an I/O problem.
Otherwise, returns this
.Copyright © 2008–2020. All rights reserved.