Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.InvalidProtocolBufferException Class Reference
Inheritance diagram for com.google.protobuf.InvalidProtocolBufferException:
Inheritance graph
[legend]

Classes

class  InvalidWireTypeException
 

Public Member Functions

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

Private Attributes

MessageLite unfinishedMessage = null
 

Static Private Attributes

static final long serialVersionUID = -1616151763072450476L
 

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

Definition at line 41 of file InvalidProtocolBufferException.java.

Constructor & Destructor Documentation

◆ InvalidProtocolBufferException() [1/3]

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

Definition at line 45 of file InvalidProtocolBufferException.java.

◆ InvalidProtocolBufferException() [2/3]

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

Definition at line 49 of file InvalidProtocolBufferException.java.

◆ InvalidProtocolBufferException() [3/3]

com.google.protobuf.InvalidProtocolBufferException.InvalidProtocolBufferException ( final String  description,
IOException  e 
)
inline

Definition at line 53 of file InvalidProtocolBufferException.java.

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.

Definition at line 71 of file InvalidProtocolBufferException.java.

◆ 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

Definition at line 63 of file InvalidProtocolBufferException.java.

◆ 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

.

Definition at line 79 of file InvalidProtocolBufferException.java.

Member Data Documentation

◆ serialVersionUID

final long com.google.protobuf.InvalidProtocolBufferException.serialVersionUID = -1616151763072450476L
staticprivate

Definition at line 42 of file InvalidProtocolBufferException.java.

◆ unfinishedMessage

MessageLite com.google.protobuf.InvalidProtocolBufferException.unfinishedMessage = null
private

Definition at line 43 of file InvalidProtocolBufferException.java.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07