Hi,
I've just started playing with the new error handling mechanisms
recently introduced (which BTW look great :)
I have a, probably dumb, question:
How can I set a decorator for a method which redirects to another when
a particular exception occurs?
That is:
@error_handler(if exception is Y branch to method X)
def method:
# some code that could raise Y
def X:
# do something with the exception
I implicitly believed this could be done from skimming the
error_handling thread a couple of weeks ago but I can't seem to find
the post where (i believe) it said it or how to do it.
TIA,
Alberto