Coverage for bugscpp/errors/docker.py : 61%

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
4class DppDockerError(DppError):
5 pass
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 )
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 )
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 )
38class DppDockerNoClientError(DppDockerError):
39 def __init__(self):
40 super().__init__(
41 "Could not get response from docker. Is your docker-daemon running?"
42 )