1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 """SCons.Errors
25
26 This file contains the exception classes used to handle internal
27 and user errors in SCons.
28
29 """
30
31 __revision__ = "src/engine/SCons/Errors.py 3603 2008/10/10 05:46:45 scons"
32
33
34
36 - def __init__(self, node=None, errstr="Unknown error", status=0,
37 filename=None, executor=None, action=None, command=None,
38 *args):
39 self.node = node
40 self.errstr = errstr
41 self.status = status
42 self.filename = filename
43 self.executor = executor
44 self.action = action
45 self.command = command
46 apply(Exception.__init__, (self,) + args)
47
50
53
56
59
61 - def __init__(self, node=None, status=None, *args):
62 self.node = node
63 self.status = status
64 apply(Exception.__init__, (self,) + args)
65
67 - def __init__(self, node=None, exc_info=(None, None, None), *args):
68 self.node = node
69 self.errstr = "Exception"
70 self.exc_info = exc_info
71 apply(Exception.__init__, (self,) + args)
72