java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.ahoo.cosid.CosIdException
me.ahoo.cosid.TimeOverflowException
- All Implemented Interfaces:
Serializable
The time of a time-based generator no longer fits the time bits of its layout (03-core-model.md ยง4); replaces 4.x
TimestampOverflowException. The generator issues no more ids: choose a layout with more time bits or a later
epoch.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeOverflowException(String generator, long time, int timeBits) The time overflowed. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TimeOverflowException
The time overflowed.- Parameters:
generator- the generator nametime- the time since the epoch, in the layout's unittimeBits- the time bits of the layout
-
-
Method Details
-
generator
The generator name.- Returns:
- the name
-
timeBits
public int timeBits()The time bits of the layout.- Returns:
- the time bits
-