class documentation
class SaveUrlError(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 files.SaveUrlError.download_failed: Failed downloading the given URL. The URL may be password-protected and the password provided was incorrect, or the link may be disabled. :ivar files.SaveUrlError.invalid_url: The given URL is invalid. :ivar files.SaveUrlError.not_found: The file where the URL is saved to no longer exists.
Class Method | path |
Create an instance of this class set to the ``path`` tag with value ``val``. |
Method | get |
Only call this if :meth:`is_path` is true. |
Method | is |
Check if the union tag is ``download_failed``. |
Method | is |
Check if the union tag is ``invalid_url``. |
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``. |
Class Variable | download |
Undocumented |
Class Variable | invalid |
Undocumented |
Class Variable | not |
Undocumented |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |