class LockFileError(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 LookupError LockFileError.path_lookup: Could not find the specified resource. :ivar files.LockFileError.too_many_write_operations: There are too many write operations in user's Dropbox. Please retry this request. :ivar files.LockFileError.too_many_files: There are too many files in one request. Please retry with fewer files. :ivar files.LockFileError.no_write_permission: The user does not have permissions to change the lock state or access the file. :ivar files.LockFileError.cannot_be_locked: Item is a type that cannot be locked. :ivar files.LockFileError.file_not_shared: Requested file is not currently shared. :ivar LockConflictError LockFileError.lock_conflict: The user action conflicts with an existing lock on the file. :ivar files.LockFileError.internal_error: Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
Class Method | lock |
Create an instance of this class set to the ``lock_conflict`` tag with value ``val``. |
Class Method | path |
Create an instance of this class set to the ``path_lookup`` tag with value ``val``. |
Method | get |
The user action conflicts with an existing lock on the file. |
Method | get |
Could not find the specified resource. |
Method | is |
Check if the union tag is ``cannot_be_locked``. |
Method | is |
Check if the union tag is ``file_not_shared``. |
Method | is |
Check if the union tag is ``internal_error``. |
Method | is |
Check if the union tag is ``lock_conflict``. |
Method | is |
Check if the union tag is ``no_write_permission``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``path_lookup``. |
Method | is |
Check if the union tag is ``too_many_files``. |
Method | is |
Check if the union tag is ``too_many_write_operations``. |
Class Variable | cannot |
Undocumented |
Class Variable | file |
Undocumented |
Class Variable | internal |
Undocumented |
Class Variable | no |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | too |
Undocumented |
Class Variable | too |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``lock_conflict`` tag with value ``val``. :param LockConflictError val: :rtype: LockFileError
Create an instance of this class set to the ``path_lookup`` tag with value ``val``. :param LookupError val: :rtype: LockFileError
The user action conflicts with an existing lock on the file. Only call this if :meth:`is_lock_conflict` is true. :rtype: LockConflictError
Could not find the specified resource. Only call this if :meth:`is_path_lookup` is true. :rtype: LookupError