-
Notifications
You must be signed in to change notification settings - Fork 302
Open
Labels
.NET interopIssues relating to how IronPython interacts with .NET typesIssues relating to how IronPython interacts with .NET types
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.
📸 Assets
Metadata
Metadata
Assignees
Labels
.NET interopIssues relating to how IronPython interacts with .NET typesIssues relating to how IronPython interacts with .NET types