Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

"""Shared exceptions.""" 

 

 

class InvalidConfig(ValueError): 

"""Raised when the configuration file is invalid.""" 

 

 

class ShellError(RuntimeError): 

"""Raised when a shell call has a non-zero return code.""" 

 

def __init__(self, *args, **kwargs): 

self.program = kwargs.pop('program', None) 

self.output = kwargs.pop('output', None) 

super().__init__(*args, **kwargs) 

 

 

class InvalidRepository(RuntimeError): 

"""Raised when there is a problem with the checked out directory.""" 

 

 

class UncommittedChanges(RuntimeError): 

"""Raised when uncommitted changes are not expected.""" 

 

 

class ScriptFailure(ShellError): 

"""Raised when post-install script has a non-zero exit code."""