1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Interface for rendering error messages to terminal."""
17
18 from muntjac.terminal.paintable import IPaintable
19
20
22 """Interface for rendering error messages to terminal. All the
23 visible errors shown to user must implement this interface.
24
25 @author: Vaadin Ltd.
26 @author: Richard Lincoln
27 @version: 1.1.2
28 """
29
30
31 SYSTEMERROR = 5000
32
33
34 CRITICAL = 4000
35
36
37 ERROR = 3000
38
39
40 WARNING = 2000
41
42
43 INFORMATION = 1000
44
46 """Gets the errors level.
47
48 @return: the level of error as an integer.
49 """
50 raise NotImplementedError
51
52
54 """Error messages are unmodifiable and thus listeners are not needed.
55 This method should be implemented as empty.
56
57 @param listener:
58 the listener to be added.
59 @see: L{IPaintable.addListener}
60 """
61 raise NotImplementedError
62
63
64 - def addCallback(self, callback, eventType=None, *args):
65 raise NotImplementedError
66
67
69 """Error messages are inmodifiable and thus listeners are not needed.
70 This method should be implemented as empty.
71
72 @param listener:
73 the listener to be removed.
74 @see: L{IPaintable.removeListener}
75 """
76 raise NotImplementedError
77
78
80 raise NotImplementedError
81
82
84 """Error messages are inmodifiable and thus listeners are not needed.
85 This method should be implemented as empty.
86
87 @see: L{IPaintable.requestRepaint}
88 """
89 raise NotImplementedError
90