class documentation

class PaperCreateError(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.PaperCreateError.invalid_path: The file could not be saved to the specified location. :ivar files.PaperCreateError.email_unverified: The user's email must be verified to create Paper docs. :ivar files.PaperCreateError.invalid_file_extension: The file path must end in .paper. :ivar files.PaperCreateError.paper_disabled: Paper is disabled for your team.

Method is_email_unverified Check if the union tag is ``email_unverified``.
Method is_invalid_file_extension Check if the union tag is ``invalid_file_extension``.
Method is_invalid_path Check if the union tag is ``invalid_path``.
Method is_paper_disabled Check if the union tag is ``paper_disabled``.
Class Variable email_unverified Undocumented
Class Variable invalid_file_extension Undocumented
Class Variable invalid_path Undocumented
Class Variable paper_disabled 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
def is_email_unverified(self): (source)

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

def is_invalid_file_extension(self): (source)

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

def is_invalid_path(self): (source)

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

def is_paper_disabled(self): (source)

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

email_unverified = (source)

Undocumented

invalid_file_extension = (source)

Undocumented

invalid_path = (source)

Undocumented

paper_disabled = (source)

Undocumented

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