MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / DocLookupError

Class DocLookupError

dropbox/paper.py:360–381  ·  view source on GitHub ↗

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.DocLookupError.doc_not_found: The required doc was not found.

Source from the content-addressed store, hash-verified

358PaperApiBaseError_validator = bv.Union(PaperApiBaseError)
359
360class DocLookupError(PaperApiBaseError):
361 """
362 This class acts as a tagged union. Only one of the ``is_*`` methods will
363 return true. To get the associated value of a tag (if one exists), use the
364 corresponding ``get_*`` method.
365
366 :ivar paper.DocLookupError.doc_not_found: The required doc was not found.
367 """
368
369 # Attribute is overwritten below the class definition
370 doc_not_found = None
371
372 def is_doc_not_found(self):
373 """
374 Check if the union tag is ``doc_not_found``.
375
376 :rtype: bool
377 """
378 return self._tag == 'doc_not_found'
379
380 def _process_custom_annotations(self, annotation_type, field_path, processor):
381 super(DocLookupError, self)._process_custom_annotations(annotation_type, field_path, processor)
382
383DocLookupError_validator = bv.Union(DocLookupError)
384

Callers 1

paper.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected