class documentation
class LockFileResultEntry(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.
Class Method | failure |
Create an instance of this class set to the ``failure`` tag with value ``val``. |
Class Method | success |
Create an instance of this class set to the ``success`` tag with value ``val``. |
Method | get |
Only call this if :meth:`is_failure` is true. |
Method | get |
Only call this if :meth:`is_success` is true. |
Method | is |
Check if the union tag is ``failure``. |
Method | is |
Check if the union tag is ``success``. |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``failure`` tag with value ``val``. :param LockFileError val: :rtype: LockFileResultEntry
Create an instance of this class set to the ``success`` tag with value ``val``. :param LockFileResult val: :rtype: LockFileResultEntry