Package me.ahoo.cosid

Class IntegerIdGenerator.IdOverflowException

All Implemented Interfaces:
Serializable
Enclosing class:
IntegerIdGenerator

public static class IntegerIdGenerator.IdOverflowException extends CosIdException
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 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