[TurboGears] 認証関係の例外

環境

この記事の内容は、Ubuntu 6.10, Python 2.4, TurboGears 1.0で確認しました。

認証関係の例外

TurboGearsで使用される認証関係の例外は、/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/identity/exceptions.pyにあります。以下に、クラス名と説明を抜粋します。

class IdentityException(Exception):
    '''
    Base class for all Identity exceptions.
    '''

class RequestRequiredException(IdentityException):
    '''
    An attempt was made to use a facility of Identity that requires the
    presence of an HTTP request.
    '''

class IdentityManagementNotEnabledException(IdentityException):
    """ User forgot to enable Identity management """

class IdentityConfigurationException(IdentityException):
    '''
    Exception thrown when the Identity management system hasn't been configured
    correctly. Mostly, when failure_url is not specified.
    '''

class IdentityFailure(cherrypy.InternalRedirect, IdentityException):
    '''
    Exception thrown when an access control check fails.
    '''