class documentation

class DownloadZipError(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.DownloadZipError.too_large: The folder or a file is too large to download. :ivar files.DownloadZipError.too_many_files: The folder has too many files to download.

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_other Check if the union tag is ``other``.
Method is_path Check if the union tag is ``path``.
Method is_too_large Check if the union tag is ``too_large``.
Method is_too_many_files Check if the union tag is ``too_many_files``.
Class Variable other Undocumented
Class Variable too_large Undocumented
Class Variable too_many_files 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: DownloadZipError

def get_path(self): (source)

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

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_too_large(self): (source)

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

def is_too_many_files(self): (source)

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

Undocumented

too_large = (source)

Undocumented

too_many_files = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented