class documentation

class ThumbnailError(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 LookupError ThumbnailError.path: An error occurs when downloading metadata for the image. :ivar files.ThumbnailError.unsupported_extension: The file extension doesn't allow conversion to a thumbnail. :ivar files.ThumbnailError.unsupported_image: The image cannot be converted to a thumbnail. :ivar files.ThumbnailError.conversion_error: An error occurs during thumbnail conversion.

Class Method path Create an instance of this class set to the ``path`` tag with value ``val``.
Method get_path An error occurs when downloading metadata for the image.
Method is_conversion_error Check if the union tag is ``conversion_error``.
Method is_path Check if the union tag is ``path``.
Method is_unsupported_extension Check if the union tag is ``unsupported_extension``.
Method is_unsupported_image Check if the union tag is ``unsupported_image``.
Class Variable conversion_error Undocumented
Class Variable unsupported_extension Undocumented
Class Variable unsupported_image 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: ThumbnailError

def get_path(self): (source)

An error occurs when downloading metadata for the image. Only call this if :meth:`is_path` is true. :rtype: LookupError

def is_conversion_error(self): (source)

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

def is_path(self): (source)

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

def is_unsupported_extension(self): (source)

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

def is_unsupported_image(self): (source)

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

conversion_error = (source)

Undocumented

unsupported_extension = (source)

Undocumented

unsupported_image = (source)

Undocumented

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

Undocumented

_catch_all = (source)

Undocumented