Package me.ahoo.cosid

Class IdOverflowException

All Implemented Interfaces:
Serializable

public class IdOverflowException extends CosIdException
An id does not fit where it goes (03-core-model.md ยง5): the narrower type it is converted to, or the bits left beside the random bits of IdGenerators.uncertain(me.ahoo.cosid.IdGenerator, int, java.util.random.RandomGenerator).
See Also:
  • Constructor Details

    • IdOverflowException

      public IdOverflowException(long id)
      The id overflows int.
      Parameters:
      id - the id
    • IdOverflowException

      public IdOverflowException(long id, String message)
      The id overflows, as message tells.
      Parameters:
      id - the id
      message - the message
  • Method Details

    • id

      public long id()
      The id that overflowed.
      Returns:
      the id