class PathRootError(bb.Union): (source)
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 RootInfo PathRootError.invalid_root: The root namespace id in Dropbox-API-Path-Root header is not valid. The value of this error is the user's latest root info. :ivar common.PathRootError.no_permission: You don't have permission to access the namespace id in Dropbox-API-Path-Root header.
Class Method | invalid |
Create an instance of this class set to the ``invalid_root`` tag with value ``val``. |
Method | get |
The root namespace id in Dropbox-API-Path-Root header is not valid. The value of this error is the user's latest root info. |
Method | is |
Check if the union tag is ``invalid_root``. |
Method | is |
Check if the union tag is ``no_permission``. |
Method | is |
Check if the union tag is ``other``. |
Class Variable | no |
Undocumented |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``invalid_root`` tag with value ``val``. :param RootInfo val: :rtype: PathRootError
The root namespace id in Dropbox-API-Path-Root header is not valid. The value of this error is the user's latest root info. Only call this if :meth:`is_invalid_root` is true. :rtype: RootInfo