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.IOExceptionThrown 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 MessageLitegetUnfinishedMessage()Returns the unfinished message attached to the exception, or null if no message is attached.InvalidProtocolBufferExceptionsetUnfinishedMessage(MessageLite unfinishedMessage)Attaches an unfinished message to the exception to support best-effort parsing inParserinterface.
-
-
-
Method Detail
-
setUnfinishedMessage
public InvalidProtocolBufferException setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort parsing inParserinterface.- Returns:
- this
-
getUnfinishedMessage
public MessageLite getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if no message is attached.
-
-