Feature: Unify System.Exception
with BaseException
#1816
Labels
.NET interop
Issues relating to how IronPython interacts with .NET types
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 theraise
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
BaseException
entirely withSystem.Exception
(best)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
The text was updated successfully, but these errors were encountered: