class RestoreError(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 RestoreError.path_lookup: An error occurs when downloading metadata for the file. :ivar WriteError RestoreError.path_write: An error occurs when trying to restore the file to that path. :ivar files.RestoreError.invalid_revision: The revision is invalid. It may not exist or may point to a deleted file. :ivar files.RestoreError.in_progress: The restore is currently executing, but has not yet completed.
Class Method | path |
Create an instance of this class set to the ``path_lookup`` tag with value ``val``. |
Class Method | path |
Create an instance of this class set to the ``path_write`` tag with value ``val``. |
Method | get |
An error occurs when downloading metadata for the file. |
Method | get |
An error occurs when trying to restore the file to that path. |
Method | is |
Check if the union tag is ``in_progress``. |
Method | is |
Check if the union tag is ``invalid_revision``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``path_lookup``. |
Method | is |
Check if the union tag is ``path_write``. |
Class Variable | in |
Undocumented |
Class Variable | invalid |
Undocumented |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``path_lookup`` tag with value ``val``. :param LookupError val: :rtype: RestoreError
Create an instance of this class set to the ``path_write`` tag with value ``val``. :param WriteError val: :rtype: RestoreError
An error occurs when downloading metadata for the file. Only call this if :meth:`is_path_lookup` is true. :rtype: LookupError
An error occurs when trying to restore the file to that path. Only call this if :meth:`is_path_write` is true. :rtype: WriteError