class ThumbnailV2Error(bb.Union): (source)
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 ThumbnailV2Error.path: An error occurred when downloading metadata for the image. :ivar files.ThumbnailV2Error.unsupported_extension: The file extension doesn't allow conversion to a thumbnail. :ivar files.ThumbnailV2Error.unsupported_image: The image cannot be converted to a thumbnail. :ivar files.ThumbnailV2Error.conversion_error: An error occurred during thumbnail conversion. :ivar files.ThumbnailV2Error.access_denied: Access to this shared link is forbidden. :ivar files.ThumbnailV2Error.not_found: The shared link does not exist.
Class Method | path |
Create an instance of this class set to the ``path`` tag with value ``val``. |
Method | get |
An error occurred when downloading metadata for the image. |
Method | is |
Check if the union tag is ``access_denied``. |
Method | is |
Check if the union tag is ``conversion_error``. |
Method | is |
Check if the union tag is ``not_found``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``path``. |
Method | is |
Check if the union tag is ``unsupported_extension``. |
Method | is |
Check if the union tag is ``unsupported_image``. |
Class Variable | access |
Undocumented |
Class Variable | conversion |
Undocumented |
Class Variable | not |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | unsupported |
Undocumented |
Class Variable | unsupported |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``path`` tag with value ``val``. :param LookupError val: :rtype: ThumbnailV2Error
An error occurred when downloading metadata for the image. Only call this if :meth:`is_path` is true. :rtype: LookupError