class WriteError(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.WriteError.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 WriteConflictError WriteError.conflict: Couldn't write to the target path because there was something in the way. :ivar files.WriteError.no_write_permission: The user doesn't have permissions to write to the target location. :ivar files.WriteError.insufficient_space: The user doesn't have enough available space (bytes) to write more data. :ivar files.WriteError.disallowed_name: Dropbox will not save the file or folder because of its name. :ivar files.WriteError.team_folder: This endpoint cannot move or delete team folders. :ivar files.WriteError.operation_suppressed: This file operation is not allowed at this path. :ivar files.WriteError.too_many_write_operations: There are too many write operations in user's Dropbox. Please retry this request.
Class Method | conflict |
Create an instance of this class set to the ``conflict`` tag with value ``val``. |
Class Method | malformed |
Create an instance of this class set to the ``malformed_path`` tag with value ``val``. |
Method | get |
Couldn't write to the target path because there was something in the way. |
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 ``conflict``. |
Method | is |
Check if the union tag is ``disallowed_name``. |
Method | is |
Check if the union tag is ``insufficient_space``. |
Method | is |
Check if the union tag is ``malformed_path``. |
Method | is |
Check if the union tag is ``no_write_permission``. |
Method | is |
Check if the union tag is ``operation_suppressed``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``team_folder``. |
Method | is |
Check if the union tag is ``too_many_write_operations``. |
Class Variable | disallowed |
Undocumented |
Class Variable | insufficient |
Undocumented |
Class Variable | no |
Undocumented |
Class Variable | operation |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | team |
Undocumented |
Class Variable | too |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``conflict`` tag with value ``val``. :param WriteConflictError val: :rtype: WriteError
Create an instance of this class set to the ``malformed_path`` tag with value ``val``. :param Optional[str] val: :rtype: WriteError
Couldn't write to the target path because there was something in the way. Only call this if :meth:`is_conflict` is true. :rtype: WriteConflictError
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]