Closed Almas-Ali closed 1 month ago
Converting this to a proposal. Radon Enhancement Proposal (REP-6)
Added raise
keyword support. #135
Added raisable builtin in stdlib/radiation
#140
This supports a list of error types.
Also user defined radiation errors are possible.
fun MyError(message=null) -> message
raise MyError
raise MyError("This is my error")
This ends up this REP for now. We don’t have OOP fully supported yet. We will move to OOP model in the future.
Is your feature request related to a problem? Please describe. It will make Radon more powerful.
Describe the solution you'd like A sample example.
Work List:
raise
keyword support.Examples:
ValueError
TypeError
KeyError
IndexError
MemoryError
IOError
NotImplementedError
etc more...BaseError
class that will be inherited by child classes to make new errors. Also custom (user defined) errors will be supported.This issue will be edited for any future changes.