You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 with System.Exception (best)
Allow BaseException and System.Exception to co-exist as different types of exceptions
👥 Intended Use-Case
This would allow for better use of the existing CLR exception types.