E5XML/XMLErrorHandler.py

changeset 564
b3d966393ba9
parent 96
9624a110667d
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
46 46
47 @param exception Exception object describing the error (SAXParseException) 47 @param exception Exception object describing the error (SAXParseException)
48 """ 48 """
49 self.errors += 1 49 self.errors += 1
50 self.totals += 1 50 self.totals += 1
51 self.msgs.append((\ 51 self.msgs.append((
52 "E", 52 "E",
53 exception.getSystemId(), 53 exception.getSystemId(),
54 exception.getLineNumber(), 54 exception.getLineNumber(),
55 exception.getColumnNumber(), 55 exception.getColumnNumber(),
56 exception.getMessage() 56 exception.getMessage()
63 @param exception Exception object describing the error (SAXParseException) 63 @param exception Exception object describing the error (SAXParseException)
64 @exception XMLFatalParseError a fatal parse error has occured 64 @exception XMLFatalParseError a fatal parse error has occured
65 """ 65 """
66 self.fatals += 1 66 self.fatals += 1
67 self.totals += 1 67 self.totals += 1
68 self.msgs.append((\ 68 self.msgs.append((
69 "F", 69 "F",
70 exception.getSystemId(), 70 exception.getSystemId(),
71 exception.getLineNumber(), 71 exception.getLineNumber(),
72 exception.getColumnNumber(), 72 exception.getColumnNumber(),
73 exception.getMessage() 73 exception.getMessage()
80 80
81 @param exception Exception object describing the error (SAXParseException) 81 @param exception Exception object describing the error (SAXParseException)
82 """ 82 """
83 self.warnings += 1 83 self.warnings += 1
84 self.totals += 1 84 self.totals += 1
85 self.msgs.append((\ 85 self.msgs.append((
86 "W", 86 "W",
87 exception.getSystemId(), 87 exception.getSystemId(),
88 exception.getLineNumber(), 88 exception.getLineNumber(),
89 exception.getColumnNumber(), 89 exception.getColumnNumber(),
90 exception.getMessage() 90 exception.getMessage()

eric ide

mercurial