class documentation
class SearchError(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.SearchError.internal_error: Something went wrong, please try again.
Class Method | invalid |
Create an instance of this class set to the ``invalid_argument`` tag with value ``val``. |
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_invalid_argument` is true. |
Method | get |
Only call this if :meth:`is_path` is true. |
Method | is |
Check if the union tag is ``internal_error``. |
Method | is |
Check if the union tag is ``invalid_argument``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``path``. |
Class Variable | internal |
Undocumented |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``invalid_argument`` tag with value ``val``. :param str val: :rtype: SearchError
Create an instance of this class set to the ``path`` tag with value ``val``. :param LookupError val: :rtype: SearchError