class AuthError(bb.Union): (source)
Errors occurred during authentication. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar auth.AuthError.invalid_access_token: The access token is invalid. :ivar auth.AuthError.invalid_select_user: The user specified in 'Dropbox-API-Select-User' is no longer on the team. :ivar auth.AuthError.invalid_select_admin: The user specified in 'Dropbox-API-Select-Admin' is not a Dropbox Business team admin. :ivar auth.AuthError.user_suspended: The user has been suspended. :ivar auth.AuthError.expired_access_token: The access token has expired. :ivar TokenScopeError AuthError.missing_scope: The access token does not have the required scope to access the route. :ivar auth.AuthError.route_access_denied: The route is not available to public.
Class Method | missing |
Create an instance of this class set to the ``missing_scope`` tag with value ``val``. |
Method | get |
The access token does not have the required scope to access the route. |
Method | is |
Check if the union tag is ``expired_access_token``. |
Method | is |
Check if the union tag is ``invalid_access_token``. |
Method | is |
Check if the union tag is ``invalid_select_admin``. |
Method | is |
Check if the union tag is ``invalid_select_user``. |
Method | is |
Check if the union tag is ``missing_scope``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``route_access_denied``. |
Method | is |
Check if the union tag is ``user_suspended``. |
Class Variable | expired |
Undocumented |
Class Variable | invalid |
Undocumented |
Class Variable | invalid |
Undocumented |
Class Variable | invalid |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | route |
Undocumented |
Class Variable | user |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``missing_scope`` tag with value ``val``. :param TokenScopeError val: :rtype: AuthError
The access token does not have the required scope to access the route. Only call this if :meth:`is_missing_scope` is true. :rtype: TokenScopeError