Class InvalidProtocolBufferException

  • All Implemented Interfaces:

    public class InvalidProtocolBufferException
    extends IOException
    Thrown when a protocol message being parsed is invalid in some way, e.g. it contains a malformed varint or a negative byte length.
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidProtocolBufferException

        public InvalidProtocolBufferException(String description)
    • Method Detail

      • setUnfinishedMessage

        public InvalidProtocolBufferException setUnfinishedMessage(MessageLite unfinishedMessage)
        Attaches an unfinished message to the exception to support best-effort parsing in Parser interface.
      • getUnfinishedMessage

        public MessageLite getUnfinishedMessage()
        Returns the unfinished message attached to the exception, or null if no message is attached.