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.
| 358 | PaperApiBaseError_validator = bv.Union(PaperApiBaseError) |
| 359 | |
| 360 | class 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 | |
| 383 | DocLookupError_validator = bv.Union(DocLookupError) |
| 384 |