Differences From Artifact [0ff6d1dc0d]:
- File src/OFXMLElementBuilder.m — part of check-in [d534f49a7d] at 2011-06-29 19:06:53 on branch trunk — Add a handler for unknown entities to OFXMLElementBuilderDelegate. (user: js, size: 4643) [annotate] [blame] [check-ins using]
To Artifact [fd1f10a22d]:
- File
src/OFXMLElementBuilder.m
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 4648) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
190 191 192 193 194 195 196 | } - (void)elementBuilder: (OFXMLElementBuilder*)builder didNotExpectCloseTag: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns { | | | | 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | } - (void)elementBuilder: (OFXMLElementBuilder*)builder didNotExpectCloseTag: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns { @throw [OFMalformedXMLException exceptionWithClass: [builder class] parser: nil]; } - (OFString*)elementBuilder: (OFXMLElementBuilder*)builder foundUnknownEntityNamed: (OFString*)entity { return nil; } @end |