Exception Reference¶
This section lists all custom exceptions raised by the sonyflake library.
Base Exception¶
Configuration Exceptions¶
- class sonyflake.InvalidBitsSequence[source]¶
Raised when the bit length for the sequence is out of valid range (0-30).
- class sonyflake.InvalidBitsMachineID[source]¶
Raised when the bit length for the machine ID is out of valid range (0-30).
- class sonyflake.InvalidBitsTime[source]¶
Raised when the computed time bit length is too small to represent valid timestamps.
- class sonyflake.InvalidSequence(bits_sequence: int)[source]¶
Raised when the sequence number is out of valid range.
- class sonyflake.InvalidMachineID(bits_machine_id: int)[source]¶
Raised when the computed machine ID is out of range.