class documentation

class ExportError(bb.Union): (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.ExportError.non_exportable: This file type cannot be exported. Use :meth:`dropbox.dropbox_client.Dropbox.files_download` instead. :ivar files.ExportError.invalid_export_format: The specified export format is not a valid option for this file type. :ivar files.ExportError.retry_error: The exportable content is not yet available. Please retry later.

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_invalid_export_format Check if the union tag is ``invalid_export_format``.
Method is_non_exportable Check if the union tag is ``non_exportable``.
Method is_other Check if the union tag is ``other``.
Method is_path Check if the union tag is ``path``.
Method is_retry_error Check if the union tag is ``retry_error``.
Class Variable invalid_export_format Undocumented
Class Variable non_exportable Undocumented
Class Variable other Undocumented
Class Variable retry_error Undocumented
Method _process_custom_annotations 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: ExportError

def get_path(self): (source)

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

def is_invalid_export_format(self): (source)

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

def is_non_exportable(self): (source)

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

def is_other(self): (source)

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

def is_path(self): (source)

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

def is_retry_error(self): (source)

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

invalid_export_format = (source)

Undocumented

non_exportable = (source)

Undocumented

Undocumented

retry_error = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented