in reply to Re: Moose | How to identify subroutine inside an 'around' in case multiple subroutine share the same 'around'?
in thread Moose | How to identify subroutine inside an 'around' in case multiple subroutine share the same 'around'?
I am not very sure about the first point. If you meant sub-classing Exception then that's what I have. Different Exceptions (subclass of Exception) to throw for different subroutines.
Regarding second point "allow for a parameter to be sent to the exception handling routine"; It has the same problem parameter will depend on subroutine. But you have a good point that it could be retrieved from the object itself (Why I didn't think it :-(. May be I was obsessed with the thought to get something out of Moose itself.).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Moose | How to identify subroutine inside an 'around' in case multiple subroutine share the same 'around'?
by locked_user sundialsvc4 (Abbot) on Aug 10, 2010 at 03:32 UTC |