class PreviewError(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 PreviewError.path: An error occurs when downloading metadata for the file. :ivar files.PreviewError.in_progress: This preview generation is still in progress and the file is not ready for preview yet. :ivar files.PreviewError.unsupported_extension: The file extension is not supported preview generation. :ivar files.PreviewError.unsupported_content: The file content is not supported for preview generation.
Class Method | path |
Create an instance of this class set to the ``path`` tag with value ``val``. |
Method | get |
An error occurs when downloading metadata for the file. |
Method | is |
Check if the union tag is ``in_progress``. |
Method | is |
Check if the union tag is ``path``. |
Method | is |
Check if the union tag is ``unsupported_content``. |
Method | is |
Check if the union tag is ``unsupported_extension``. |
Class Variable | in |
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: PreviewError
An error occurs when downloading metadata for the file. Only call this if :meth:`is_path` is true. :rtype: LookupError