Package akka.protobuf
Class InvalidProtocolBufferException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- akka.protobuf.InvalidProtocolBufferException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidProtocolBufferException extends java.io.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 Summary
Constructors Constructor Description InvalidProtocolBufferException(java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageLite
getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if no message is attached.InvalidProtocolBufferException
setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort parsing inParser
interface.
-
-
-
Method Detail
-
setUnfinishedMessage
public InvalidProtocolBufferException setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort parsing inParser
interface.- Returns:
- this
-
getUnfinishedMessage
public MessageLite getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if no message is attached.
-
-