#154: subclassed ExceptionHandlers can't handle exceptions
---------------------------------------------------+------------------------
Reporter: cotto | Owner: whiteknight
Type: bug | Status: closed
Priority: major | Milestone:
Component: core | Version: trunk
Severity: medium | Resolution: fixed
Keywords: exception, subclass, exceptionhandler | Lang:
Patch: | Platform: all
---------------------------------------------------+------------------------
Changes (by coke):
* status: assigned => closed
* resolution: => fixed
Comment:
This code (which includes the original sample and poking in the exception
once in the handler) works as of 41185
{{{
.sub main :main
.local pmc myhandler, myeh
myhandler = subclass ['ExceptionHandler'], ['MyHandler']
#myhandler = get_class ['ExceptionHandler']
new myeh, myhandler
set_addr myeh, subclassed_handler
push_eh myeh
$P0 = new ['Exception']
$P0['message'] = 'a message'
throw $P0
subclassed_handler:
get_results '0', $P0
print "subclassed handler: "
$S0 = $P0['message']
say $S0
.end
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/154#comment:13>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets