Toto 1.0.10 documentation

Exceptions

«  Database Connections   ::   Contents   ::   Task Queues  »

Exceptions

class toto.exceptions.TotoException(code, value)[source]

This class is used to return errors from Toto methods. TotoException.value is used to describe the exception and TotoException.code should be set to a status code that can be used to programmatically reference the exception. Toto’s error redirecting capabilities use code to look up the redirect URL.

Toto uses the following error codes internally:

«  Database Connections   ::   Contents   ::   Task Queues  »