fabric / fabric
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?
3 6
class NothingToDo(Exception):
4 6
    pass
5

6

7 6
class GroupException(Exception):
8
    """
9
    Lightweight exception wrapper for `.GroupResult` when one contains errors.
10

11
    .. versionadded:: 2.0
12
    """
13

14 6
    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 6
        self.result = result
19

20

21 6
class InvalidV1Env(Exception):
22
    """
23
    Raised when attempting to import a Fabric 1 ``env`` which is missing data.
24
    """
25

26 6
    pass

Read our documentation on viewing source code .

Loading