# Catch exception issue

**URL:** <https://www.ruby-forum.com/t/catch-exception-issue/217728>\
**Category:** IronRuby\
**Created:** [March 10, 2012, 7:47am UTC](https://www.ruby-forum.com/t/catch-exception-issue/217728 "2012-03-10T07:47:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 10, 2012, 7:47am UTC](https://www.ruby-forum.com/t/catch-exception-issue/217728/1 "2012-03-10T07:47:24Z")

</div>

Hello,

We found issue in IronRuby core when running on Windows Phone 7  
emulator.  
Below is the code to reproduce the issue:

def test(\*args);  
puts ‘test’;  
raise ArgumentError, ‘Error’;  
end;

begin;  
test;  
rescue =\> e;  
puts ‘caught’;  
end;"

The problem is that rescue does not called and exception goes throw.

If we change test to:  
def test();  
puts ‘test’;  
raise ArgumentError, ‘Error’;  
end;

Exception caught fine. So the issue is with variable parameters list

Does anybody has any idea why it may happen?

Regards,  
Evgeny.
