class UploadSessionLookupError(bb.Union): (source)
Known subclasses: dropbox.files.UploadSessionAppendError
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 files.UploadSessionLookupError.not_found: The upload session ID was not found or has expired. Upload sessions are valid for 7 days. :ivar UploadSessionOffsetError UploadSessionLookupError.incorrect_offset: The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error. :ivar files.UploadSessionLookupError.closed: You are attempting to append data to an upload session that has already been closed (i.e. committed). :ivar files.UploadSessionLookupError.not_closed: The session must be closed before calling upload_session/finish_batch. :ivar files.UploadSessionLookupError.too_large: You can not append to the upload session because the size of a file should not reach the max file size limit (i.e. 350GB). :ivar files.UploadSessionLookupError.concurrent_session_invalid_offset: For concurrent upload sessions, offset needs to be multiple of 4194304 bytes. :ivar files.UploadSessionLookupError.concurrent_session_invalid_data_size: For concurrent upload sessions, only chunks with size multiple of 4194304 bytes can be uploaded. :ivar files.UploadSessionLookupError.payload_too_large: The request payload must be at most 150 MB.
Class Method | incorrect |
Create an instance of this class set to the ``incorrect_offset`` tag with value ``val``. |
Method | get |
The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e... |
Method | is |
Check if the union tag is ``closed``. |
Method | is |
Check if the union tag is ``concurrent_session_invalid_data_size``. |
Method | is |
Check if the union tag is ``concurrent_session_invalid_offset``. |
Method | is |
Check if the union tag is ``incorrect_offset``. |
Method | is |
Check if the union tag is ``not_closed``. |
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 ``payload_too_large``. |
Method | is |
Check if the union tag is ``too_large``. |
Class Variable | closed |
Undocumented |
Class Variable | concurrent |
Undocumented |
Class Variable | concurrent |
Undocumented |
Class Variable | not |
Undocumented |
Class Variable | not |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | payload |
Undocumented |
Class Variable | too |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``incorrect_offset`` tag with value ``val``. :param UploadSessionOffsetError val: :rtype: UploadSessionLookupError
The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error. Only call this if :meth:`is_incorrect_offset` is true. :rtype: UploadSessionOffsetError