Yet another post on WOXML
Time for yet another post about Apple’s WebObjects XML framework:
If you get a WOXMLException, which Apple “helpfully” uses to “wrap a number of exceptions that can arise during the parsing process, reducing the number of exceptions your code has to catch” (from the docs), you might want to know that WOXMLException inherits from private class _NSForwardException, which isn’t documented – but this class implements a number of public methods.
You might, for example, want to use the originalException() method to get hold of the original exception. (At first I didn’t think it was possible, but in JavaBrowser I could see what methods the private class implements.)
Malte and I have posted many entries about this framework: here – here – here – here – and here. Check them out if you have problems (which is likely).