org.msgpack.core
Class MessageIntegerOverflowException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.msgpack.core.MessagePackException
                  extended by org.msgpack.core.MessageTypeException
                      extended by org.msgpack.core.MessageOverflowException
                          extended by org.msgpack.core.MessageIntegerOverflowException
All Implemented Interfaces:
java.io.Serializable

public class MessageIntegerOverflowException
extends MessageOverflowException

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
MessageIntegerOverflowException(java.math.BigInteger bigInteger)
           
MessageIntegerOverflowException(long value)
           
MessageIntegerOverflowException(java.lang.String message, java.math.BigInteger bigInteger)
           
 
Method Summary
 java.math.BigInteger getBigInteger()
           
 java.lang.String getMessage()
           
 
Methods inherited from class org.msgpack.core.MessagePackException
UNSUPPORTED
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)
Method Detail

getBigInteger

public java.math.BigInteger getBigInteger()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable