webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
com.google.protobuf.InvalidProtocolBufferException Class Reference
Inheritance diagram for com.google.protobuf.InvalidProtocolBufferException:

Public Member Functions

 InvalidProtocolBufferException (final String description)
 
 InvalidProtocolBufferException (IOException e)
 
InvalidProtocolBufferException setUnfinishedMessage (MessageLite unfinishedMessage)
 
MessageLite getUnfinishedMessage ()
 
IOException unwrapIOException ()
 

Detailed Description

Thrown when a protocol message being parsed is invalid in some way, e.g. it contains a malformed varint or a negative byte length.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

Constructor & Destructor Documentation

◆ InvalidProtocolBufferException() [1/2]

com.google.protobuf.InvalidProtocolBufferException.InvalidProtocolBufferException ( final String  description)
inline

◆ InvalidProtocolBufferException() [2/2]

com.google.protobuf.InvalidProtocolBufferException.InvalidProtocolBufferException ( IOException  e)
inline

Member Function Documentation

◆ getUnfinishedMessage()

MessageLite com.google.protobuf.InvalidProtocolBufferException.getUnfinishedMessage ( )
inline

Returns the unfinished message attached to the exception, or null if no message is attached.

◆ setUnfinishedMessage()

InvalidProtocolBufferException com.google.protobuf.InvalidProtocolBufferException.setUnfinishedMessage ( MessageLite  unfinishedMessage)
inline

Attaches an unfinished message to the exception to support best-effort parsing in

Parser

interface.

Returns
this

◆ unwrapIOException()

IOException com.google.protobuf.InvalidProtocolBufferException.unwrapIOException ( )
inline

Unwraps the underlying IOException if this exception was caused by an I/O problem. Otherwise, returns

this

.


The documentation for this class was generated from the following file: