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.String
ERR_TRUNCATED_MESSAGE
private static long
serialVersionUID
-
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 ProtobufException
invalidEndTag()
(package private) static ProtobufException
invalidTag()
(package private) static ProtobufException
invalidWireType()
(package private) static ProtobufException
malformedVarint()
(package private) static ProtobufException
misreportedSize()
(package private) static ProtobufException
negativeSize()
(package private) static ProtobufException
recursionLimitExceeded()
(package private) static ProtobufException
sizeLimitExceeded()
(package private) static ProtobufException
truncatedMessage()
(package private) static ProtobufException
truncatedMessage(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()
-
-