2012-02-21, 18:09
I've been thinking a bit about the extra data and I think I'll add both options, ie. the addExtraData() method and the option to pass it into onExceptionRaised()
I can think of scenarios where both would be useful depending on the addon type.
I prefer the addExtraData(), because onExceptionRaised() is only supposed to be invoked when an exception is raised in Python, so your code/state is likely messed up somehow and it might be difficult to find the data you need without raising a new exception.
Thanks for updating the wiki, btw
Br.
Tommy
I can think of scenarios where both would be useful depending on the addon type.
I prefer the addExtraData(), because onExceptionRaised() is only supposed to be invoked when an exception is raised in Python, so your code/state is likely messed up somehow and it might be difficult to find the data you need without raising a new exception.
Thanks for updating the wiki, btw
Br.
Tommy