1# TODO: this may want to move to Invoke if we can find a use for it there too? 2# Or make it _more_ narrowly focused and stay here? 3class NothingToDo(Exception): 4 pass 5 6 7class GroupException(Exception): 8 """ 9 Lightweight exception wrapper for `.GroupResult` when one contains errors. 10 11 .. versionadded:: 2.0 12 """ 13 14 def __init__(self, result): 15 #: The `.GroupResult` object which would have been returned, had there 16 #: been no errors. See its docstring (and that of `.Group`) for 17 #: details. 18 self.result = result 19 20 21class InvalidV1Env(Exception): 22 """ 23 Raised when attempting to import a Fabric 1 ``env`` which is missing data. 24 """ 25 26 pass 27