https://bugzilla.novell.com/show_bug.cgi?id=419634
Summary: catch(Exception){throw;} within a catch block is
throwing the previous exception
Product: Mono: Runtime
Version: 1.2.6
Platform: 64bit
OS/Version: openSUSE 10.2
Status: NEW
Severity: Critical
Priority: P5 - None
Component: misc
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: Other
Within a catch block e.g catch(ApplicationException ae) if you have a nested
try/catch block with a catch(Exception){throw;} the ApplicationException is
thrown instead of the Exception caught by catch(Exception)
try
{
throw new ApplicationException();
}
catch (ApplicationException ae)
{
try
{
throw new IOException();
}
catch (Exception)
{
throw;
}
}
So in the above case, in windows .NET, the IOException is thrown but in mono on
unix, the ApplicationException is thrown
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs