class LookupError(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 Optional[str] files.LookupError.malformed_path: The given path does not satisfy the required path format. Please refer to the :link:`Path formats documentation https://www.dropbox.com/developers/documentation/http/documentation#path-formats` for more information. :ivar files.LookupError.not_found: There is nothing at the given path. :ivar files.LookupError.not_file: We were expecting a file, but the given path refers to something that isn't a file. :ivar files.LookupError.not_folder: We were expecting a folder, but the given path refers to something that isn't a folder. :ivar files.LookupError.restricted_content: The file cannot be transferred because the content is restricted. For example, we might restrict a file due to legal requirements. :ivar files.LookupError.unsupported_content_type: This operation is not supported for this content type. :ivar files.LookupError.locked: The given path is locked.
Class Method | malformed |
Create an instance of this class set to the ``malformed_path`` tag with value ``val``. |
Method | get |
The given path does not satisfy the required path format. Please refer to the `Path formats documentation <https://www.dropbox.com/developers/documentation/http/documentation#path-formats>`_ for more information. |
Method | is |
Check if the union tag is ``locked``. |
Method | is |
Check if the union tag is ``malformed_path``. |
Method | is |
Check if the union tag is ``not_file``. |
Method | is |
Check if the union tag is ``not_folder``. |
Method | is |
Check if the union tag is ``not_found``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``restricted_content``. |
Method | is |
Check if the union tag is ``unsupported_content_type``. |
Class Variable | locked |
Undocumented |
Class Variable | not |
Undocumented |
Class Variable | not |
Undocumented |
Class Variable | not |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | restricted |
Undocumented |
Class Variable | unsupported |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``malformed_path`` tag with value ``val``. :param Optional[str] val: :rtype: LookupError
The given path does not satisfy the required path format. Please refer to the `Path formats documentation <https://www.dropbox.com/developers/documentation/http/documentation#path-formats>`_ for more information. Only call this if :meth:`is_malformed_path` is true. :rtype: Optional[str]