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 ()
 
MessageLite getUnfinishedMessage ()
 
 InvalidProtocolBufferException (final String description)
 
 InvalidProtocolBufferException (final String description)
 
 InvalidProtocolBufferException (final String description, IOException e)
 
 InvalidProtocolBufferException (final String description, IOException e)
 
 InvalidProtocolBufferException (IOException e)
 
 InvalidProtocolBufferException (IOException e)
 
InvalidProtocolBufferException setUnfinishedMessage (MessageLite unfinishedMessage)
 
InvalidProtocolBufferException setUnfinishedMessage (MessageLite unfinishedMessage)
 
IOException unwrapIOException ()
 
IOException unwrapIOException ()
 

Private Attributes

MessageLite unfinishedMessage = null
 
boolean wasThrownFromInputStream
 

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java.

Constructor & Destructor Documentation

◆ InvalidProtocolBufferException() [1/6]

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

◆ InvalidProtocolBufferException() [2/6]

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

◆ InvalidProtocolBufferException() [3/6]

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

◆ InvalidProtocolBufferException() [4/6]

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

◆ InvalidProtocolBufferException() [5/6]

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

◆ InvalidProtocolBufferException() [6/6]

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

Member Function Documentation

◆ getUnfinishedMessage() [1/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java.

◆ getUnfinishedMessage() [2/2]

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 72 of file protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java.

◆ setUnfinishedMessage() [1/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java.

◆ setUnfinishedMessage() [2/2]

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 64 of file protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java.

◆ unwrapIOException() [1/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java.

◆ unwrapIOException() [2/2]

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 102 of file protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java.

Member Data Documentation

◆ serialVersionUID

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

◆ unfinishedMessage

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

◆ wasThrownFromInputStream

boolean com.google.protobuf.InvalidProtocolBufferException.wasThrownFromInputStream
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:06