Package me.ahoo.cosid.uncertainty
Class OriginalIdOverflowException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.ahoo.cosid.CosIdException
me.ahoo.cosid.uncertainty.OriginalIdOverflowException
- All Implemented Interfaces:
Serializable
Exception thrown when original ID exceeds maximum representable value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOriginalIdOverflowException(long originalId, int originalIdBits, long maxOriginalId) Creates a new exception. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the max original ID.longGets the original ID.intGets the original ID bits.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OriginalIdOverflowException
public OriginalIdOverflowException(long originalId, int originalIdBits, long maxOriginalId) Creates a new exception.- Parameters:
originalId- the original ID valueoriginalIdBits- the number of bits for the original IDmaxOriginalId- the maximum representable ID
-
-
Method Details
-
originalId
public long originalId()Gets the original ID.- Returns:
- the original ID
-
originalIdBits
public int originalIdBits()Gets the original ID bits.- Returns:
- the bits
-
maxOriginalId
public long maxOriginalId()Gets the max original ID.- Returns:
- the max ID
-