Skip to content

Exceptions

tilttek/generator-bundle

The bundle's own exceptions are those of the API's access and of the keys of the states; the others are those of tilttek/generator, which the commands write and the API answers.

ExceptionWhenAnswer of the API
Application\Exception\AccessDeniedA missing or unknown token (tokenMissing), or a generator not open to the client401, or 403
Application\Exception\InvalidDrawRequestA count, a uniqueness, a seed or a state it cannot read400
Application\Exception\InvalidStateKeyA key of MemoryTables or of --key that is empty or longer than 200 characters—
Tilttek\Generator\Exception\UnknownGeneratorA generator that does not exist404
Any other Tilttek\Generator\Exception\GeneratorExceptionA draw that fails422

An invalid catalog — InvalidDefinition or InvalidCatalog — fails where the generator is first built: the first template that calls tilttek_draw, the first request to the API, or the command, which lists its problems. tilttek:generator:validate finds them before.