@Generated(value="proto")
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.
|
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.
|
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(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
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.