1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
21 """Exception base class for errors in TimeSide."""
22
24 """Exception base class for errors in TimeSide."""
25
27 """Exception for reporting errors from a subprocess"""
28
29 - def __init__(self, message, command, subprocess):
30 self.message = message
31 self.command = str(command)
32 self.subprocess = subprocess
33
35 if self.subprocess.stderr != None:
36 error = self.subprocess.stderr.read()
37 else:
38 error = ''
39 return "%s ; command: %s; error: %s" % (self.message,
40 self.command,
41 error)
42