Package org.msgpack.core
Class MessageIntegerOverflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.msgpack.core.MessagePackException
-
- org.msgpack.core.MessageTypeException
-
- org.msgpack.core.MessageIntegerOverflowException
-
- All Implemented Interfaces:
java.io.Serializable
public class MessageIntegerOverflowException extends MessageTypeException
This error is thrown when the user tries to read an integer value using a smaller types. For example, calling MessageUnpacker.unpackInt() for an integer value that is larger than Integer.MAX_VALUE will cause this exception.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.msgpack.core.MessagePackException
UNREACHABLE
-
-
Constructor Summary
Constructors Constructor Description MessageIntegerOverflowException(long value)
MessageIntegerOverflowException(java.lang.String message, java.math.BigInteger bigInteger)
MessageIntegerOverflowException(java.math.BigInteger bigInteger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getBigInteger()
java.lang.String
getMessage()
-
Methods inherited from class org.msgpack.core.MessagePackException
UNSUPPORTED
-
-
-
-
Constructor Detail
-
MessageIntegerOverflowException
public MessageIntegerOverflowException(java.math.BigInteger bigInteger)
-
MessageIntegerOverflowException
public MessageIntegerOverflowException(long value)
-
MessageIntegerOverflowException
public MessageIntegerOverflowException(java.lang.String message, java.math.BigInteger bigInteger)
-
-