Class InvalidProtocolBufferException

    • Constructor Detail

      • InvalidProtocolBufferException

        public InvalidProtocolBufferException​(java.lang.String description)
      • InvalidProtocolBufferException

        public InvalidProtocolBufferException​(java.io.IOException e)
      • InvalidProtocolBufferException

        public InvalidProtocolBufferException​(java.lang.String description,
                                              java.io.IOException e)
    • Method Detail

      • setUnfinishedMessage

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

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

        public java.io.IOException unwrapIOException()
        Unwraps the underlying IOException if this exception was caused by an I/O problem. Otherwise, returns this.