class PaperDocUpdateError(DocLookupError): (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 paper.PaperDocUpdateError.content_malformed: The provided content was malformed and cannot be imported to Paper. :ivar paper.PaperDocUpdateError.revision_mismatch: The provided revision does not match the document head. :ivar paper.PaperDocUpdateError.doc_length_exceeded: The newly created Paper doc would be too large, split the content into multiple docs. :ivar paper.PaperDocUpdateError.image_size_exceeded: The imported document contains an image that is too large. The current limit is 1MB. This only applies to HTML with data URI. :ivar paper.PaperDocUpdateError.doc_archived: This operation is not allowed on archived Paper docs. :ivar paper.PaperDocUpdateError.doc_deleted: This operation is not allowed on deleted Paper docs.
Method | is |
Check if the union tag is ``content_malformed``. |
Method | is |
Check if the union tag is ``doc_archived``. |
Method | is |
Check if the union tag is ``doc_deleted``. |
Method | is |
Check if the union tag is ``doc_length_exceeded``. |
Method | is |
Check if the union tag is ``image_size_exceeded``. |
Method | is |
Check if the union tag is ``revision_mismatch``. |
Class Variable | content |
Undocumented |
Class Variable | doc |
Undocumented |
Class Variable | doc |
Undocumented |
Class Variable | doc |
Undocumented |
Class Variable | image |
Undocumented |
Class Variable | revision |
Undocumented |
Method | _process |
Undocumented |
Inherited from DocLookupError
:
Method | is |
Check if the union tag is ``doc_not_found``. |
Class Variable | doc |
Undocumented |
Inherited from PaperApiBaseError
(via DocLookupError
):
Method | is |
Check if the union tag is ``insufficient_permissions``. |
Method | is |
Check if the union tag is ``other``. |
Class Variable | insufficient |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | _catch |
Undocumented |