Exceptions
CL Forge-specific exceptions.
cl_forge.exceptions
¶
API Clients¶
cl_forge.exceptions.ClientException
¶
Bases: Exception
Base class for all exceptions raised by API clients.
cl_forge.exceptions.BadStatus
¶
Bases: ClientException
Raised when an HTTP status code is not 200 (success).
cl_forge.exceptions.EmptyApiKey
¶
Bases: ClientException
Raised when an API key is not provided.
cl_forge.exceptions.EmptyPath
¶
Bases: ClientException
Raised when a path is not provided.
cl_forge.exceptions.HttpError
¶
Bases: ClientException
Raised when an HTTP error occurs.
cl_forge.exceptions.InvalidPath
¶
Bases: ClientException
Raised when API path is invalid.
cl_forge.exceptions.UnsupportedFormat
¶
Bases: ClientException
Raised when an unsupported format is requested.
Verifier¶
cl_forge.exceptions.VerifierException
¶
Bases: Exception
Base class for all exceptions raised by the verifier.
cl_forge.exceptions.EmptyVerifier
¶
Bases: VerifierException
Raised when the given verifier is empty on RUT validation.
cl_forge.exceptions.InvalidVerifier
¶
Bases: VerifierException
Raised when the given verifier is invalid on RUT validation.
cl_forge.exceptions.UnexpectedComputation
¶
Bases: VerifierException
Raised when the verifier computation fails.
Ppu¶
cl_forge.exceptions.PpuException
¶
Bases: Exception
Base class for all exceptions raised by the PPU.
cl_forge.exceptions.EmptyDigraph
¶
Bases: PpuException
Raised when internal mapping functions encounter an empty digraph.
cl_forge.exceptions.EmptyLetter
¶
Bases: PpuException
Raised when internal mapping functions encounter an empty letter.
cl_forge.exceptions.InvalidLength
¶
Bases: PpuException
Raised when PPU letters or digraphs are of invalid length.
cl_forge.exceptions.ParsingError
¶
Bases: PpuException
Raised when failed to create the numeric representation of the given PPU.
cl_forge.exceptions.UnknownDigraph
¶
Bases: PpuException
Raised when the given PPU has digraphs out of the mapping.
cl_forge.exceptions.UnknownFormat
¶
Bases: PpuException
Raised when the given PPU does not match any known format.
cl_forge.exceptions.UnknownLetter
¶
Bases: PpuException
Raised when the given PPU has letters out of the mapping.
Generate¶
cl_forge.exceptions.GenerateException
¶
Bases: Exception
Base class for all exceptions raised by the RUT generator.
cl_forge.exceptions.InsufficientRange
¶
Bases: GenerateException
Raised when the requested amount of RUTs is greater than the available range.
cl_forge.exceptions.InvalidInput
¶
Bases: GenerateException
Raised when generator's given parameters are invalid.
cl_forge.exceptions.InvalidRange
¶
Bases: GenerateException
Raised when the generator given lower bound is greater than upper bound.
cl_forge.exceptions.UnexpectedGeneration
¶
Bases: GenerateException
Raised to support unidentified errors during RUT generation.