class documentation

class PaperUpdateError(PaperContentError): (source)

View In Hierarchy

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.PaperUpdateError.revision_mismatch: The provided revision does not match the document head. :ivar files.PaperUpdateError.doc_archived: This operation is not allowed on archived Paper docs. :ivar files.PaperUpdateError.doc_deleted: This operation is not allowed on deleted Paper docs.

Class Method path Create an instance of this class set to the ``path`` tag with value ``val``.
Method get_path Only call this if :meth:`is_path` is true.
Method is_doc_archived Check if the union tag is ``doc_archived``.
Method is_doc_deleted Check if the union tag is ``doc_deleted``.
Method is_path Check if the union tag is ``path``.
Method is_revision_mismatch Check if the union tag is ``revision_mismatch``.
Class Variable doc_archived Undocumented
Class Variable doc_deleted Undocumented
Class Variable revision_mismatch Undocumented
Method _process_custom_annotations Undocumented

Inherited from PaperContentError:

Method is_content_malformed Check if the union tag is ``content_malformed``.
Method is_doc_length_exceeded Check if the union tag is ``doc_length_exceeded``.
Method is_image_size_exceeded Check if the union tag is ``image_size_exceeded``.
Method is_insufficient_permissions Check if the union tag is ``insufficient_permissions``.
Method is_other Check if the union tag is ``other``.
Class Variable content_malformed Undocumented
Class Variable doc_length_exceeded Undocumented
Class Variable image_size_exceeded Undocumented
Class Variable insufficient_permissions Undocumented
Class Variable other Undocumented
Class Variable _catch_all Undocumented
@classmethod
def path(cls, val): (source)

Create an instance of this class set to the ``path`` tag with value ``val``. :param LookupError val: :rtype: PaperUpdateError

def get_path(self): (source)

Only call this if :meth:`is_path` is true. :rtype: LookupError

def is_doc_archived(self): (source)

Check if the union tag is ``doc_archived``. :rtype: bool

def is_doc_deleted(self): (source)

Check if the union tag is ``doc_deleted``. :rtype: bool

def is_path(self): (source)

Check if the union tag is ``path``. :rtype: bool

def is_revision_mismatch(self): (source)

Check if the union tag is ``revision_mismatch``. :rtype: bool

doc_archived = (source)

Undocumented

doc_deleted = (source)

Undocumented

revision_mismatch = (source)

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)