Open
Description
Note
This issue is the perfect opportunity to demonstrate the new issue templates introduced in #1812!
📄 Description
Currently, raising a .NET exception that derives from System.Exception
using the raise
keyword results in the following error: TypeError: exceptions must derive from BaseException
.
The IronPython compiler should allow exceptions from .NET classes to be raised using Python's built in raise
function.
🗃️ Alternative solutions
- Replace
BaseException
entirely withSystem.Exception
(best) - Allow
BaseException
andSystem.Exception
to co-exist as different types of exceptions
👥 Intended Use-Case
This would allow for better use of the existing CLR exception types.