Package io.protostuff
Class ProtobufException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- io.protostuff.ProtostuffException
-
- io.protostuff.ProtobufException
-
- All Implemented Interfaces:
java.io.Serializable
public class ProtobufException extends ProtostuffException
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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringERR_TRUNCATED_MESSAGEprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ProtobufException(java.lang.String description)ProtobufException(java.lang.String description, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static ProtobufExceptioninvalidEndTag()(package private) static ProtobufExceptioninvalidTag()(package private) static ProtobufExceptioninvalidWireType()(package private) static ProtobufExceptionmalformedVarint()(package private) static ProtobufExceptionmisreportedSize()(package private) static ProtobufExceptionnegativeSize()(package private) static ProtobufExceptionrecursionLimitExceeded()(package private) static ProtobufExceptionsizeLimitExceeded()(package private) static ProtobufExceptiontruncatedMessage()(package private) static ProtobufExceptiontruncatedMessage(java.lang.Throwable cause)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ERR_TRUNCATED_MESSAGE
private static final java.lang.String ERR_TRUNCATED_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
truncatedMessage
static ProtobufException truncatedMessage(java.lang.Throwable cause)
-
truncatedMessage
static ProtobufException truncatedMessage()
-
misreportedSize
static ProtobufException misreportedSize()
-
negativeSize
static ProtobufException negativeSize()
-
malformedVarint
static ProtobufException malformedVarint()
-
invalidTag
static ProtobufException invalidTag()
-
invalidEndTag
static ProtobufException invalidEndTag()
-
invalidWireType
static ProtobufException invalidWireType()
-
recursionLimitExceeded
static ProtobufException recursionLimitExceeded()
-
sizeLimitExceeded
static ProtobufException sizeLimitExceeded()
-
-