Package me.ahoo.cosid
Class IntegerIdGenerator.IdOverflowException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.ahoo.cosid.CosIdException
me.ahoo.cosid.IntegerIdGenerator.IdOverflowException
- All Implemented Interfaces:
 Serializable
- Enclosing class:
 - IntegerIdGenerator
 
Exception thrown when an ID exceeds the integer value range.
 
 
This exception is thrown by IntegerIdGenerator when the underlying
 long ID generated by the wrapped generator exceeds the range of valid
 integer values (approximately +/- 2.1 billion).
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionIdOverflowException(long id) Create a new IdOverflowException for the specified ID. - 
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
IdOverflowException
public IdOverflowException(long id) Create a new IdOverflowException for the specified ID.- Parameters:
 id- The ID that exceeded the integer range
 
 - 
 - 
Method Details
- 
getId
public long getId()Get the ID that caused the overflow.- Returns:
 - The ID that exceeded the integer range
 
 
 -