ObjFW  Check-in [a4fbb3dd1b]

Overview
Comment:Include line number in OFMalformedXMLException.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a4fbb3dd1bd63a9f25ce460644753ab0e7049b35382bfdda617e4c193c57f9fa
User & Date: js on 2013-06-16 19:35:10
Other Links: manifest | tags
Context
2013-06-16
20:03
Split OFUnboundNamespaceException. check-in: 457e0e82af user: js tags: trunk
19:35
Include line number in OFMalformedXMLException. check-in: a4fbb3dd1b user: js tags: trunk
2013-06-15
18:56
configure: Improve --with-wii option. check-in: 14e7c3481f user: js tags: trunk
Changes

Modified src/exceptions/OFMalformedXMLException.m from [9e9069d031] to [e6f9f183de].

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
	[super dealloc];
}

- (OFString*)description
{
	if (_parser != nil)
		return [OFString stringWithFormat:
		    @"The XML parser in class %@ encountered malformed XML!",
		    _inClass];
	else
		return @"An XML parser encountered malformed XML!";
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
}
@end







|
|









47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
	[super dealloc];
}

- (OFString*)description
{
	if (_parser != nil)
		return [OFString stringWithFormat:
		    @"The XML parser in class %@ encountered malformed XML in "
		    @"line %zd!", _inClass, [_parser lineNumber]];
	else
		return @"An XML parser encountered malformed XML!";
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
}
@end