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

1from errors.common.exception import DppError 

2 

3 

4class DppDockerError(DppError): 

5 pass 

6 

7 

8class DppDockerBuildError(DppError): 

9 def __init__(self, msg): 

10 self.msg = msg 

11 super().__init__( 

12 f"{self.msg}\n" 

13 "Could not build image. Please open an issue at " 

14 "https://github.com/Suresoft-GLaDOS/bugscpp/issues\n" 

15 ) 

16 

17 

18class DppDockerBuildClientError(DppError): 

19 def __init__(self, msg): 

20 self.msg = msg 

21 super().__init__( 

22 f"{self.msg}\n" 

23 "Could not build image (client error). Please open an issue at " 

24 "https://github.com/Suresoft-GLaDOS/bugscpp/issues\n" 

25 ) 

26 

27 

28class DppDockerBuildServerError(DppError): 

29 def __init__(self, msg): 

30 self.msg = msg 

31 super().__init__( 

32 f"{self.msg}\n" 

33 "Could not build image (server error). Please open an issue at " 

34 "https://github.com/Suresoft-GLaDOS/bugscpp/issues\n" 

35 ) 

36 

37 

38class DppDockerNoClientError(DppDockerError): 

39 def __init__(self): 

40 super().__init__( 

41 "Could not get response from docker. Is your docker-daemon running?" 

42 )