I've stumbled across a problem last night that has me quite curious. I was n the middle of writing a raw Taglib and made an error along the way.
I had decided that when something I know shouldn't happen happens (a root tag being nested when it shouldn't be), I would throw and Exception from my Exceptions module (using Error).
Now, from the looks of the logs, it looks like when an exception was thrown, AxKit went ahead and reparsed the docusment again. I'd assume this has something to do with AxErrorStylesheet (mine isn't set at all).
This threw me for a loop as my module got confused since it keeps local state between parse_start, parse_end calls using a my lexical.
So, I guess my question is somewhat easy: is this expected behaviour, and should my Taglib exceptions always make sure it's -text contains an XML string in the format used in the example here:
http://cpan.uwinnipeg.ca/htdocs/AxKit/AxKit.html#axerrorstylesheet
Can I assume that based on the first sentence that this behaviour does NOT happen if I simply die instead of throw?
Thanks, -=Chris
smime.p7s
Description: S/MIME Cryptographic Signature
