class UploadError(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 UploadWriteFailed UploadError.path: Unable to save the uploaded contents to a file. :ivar InvalidPropertyGroupError UploadError.properties_error: The supplied property group is invalid. The file has uploaded without property groups. :ivar files.UploadError.payload_too_large: The request payload must be at most 150 MB. :ivar files.UploadError.content_hash_mismatch: The content received by the Dropbox server in this call does not match the provided content hash.
Class Method | path |
Create an instance of this class set to the ``path`` tag with value ``val``. |
Class Method | properties |
Create an instance of this class set to the ``properties_error`` tag with value ``val``. |
Method | get |
Unable to save the uploaded contents to a file. |
Method | get |
The supplied property group is invalid. The file has uploaded without property groups. |
Method | is |
Check if the union tag is ``content_hash_mismatch``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``path``. |
Method | is |
Check if the union tag is ``payload_too_large``. |
Method | is |
Check if the union tag is ``properties_error``. |
Class Variable | content |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | payload |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``path`` tag with value ``val``. :param UploadWriteFailed val: :rtype: UploadError
Create an instance of this class set to the ``properties_error`` tag with value ``val``. :param file_properties.InvalidPropertyGroupError val: :rtype: UploadError
Unable to save the uploaded contents to a file. Only call this if :meth:`is_path` is true. :rtype: UploadWriteFailed
The supplied property group is invalid. The file has uploaded without property groups. Only call this if :meth:`is_properties_error` is true. :rtype: file_properties.InvalidPropertyGroupError