Skip to content

Commit

Permalink
feat: added builtin radiation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Almas-Ali committed May 26, 2024
1 parent 2f8017d commit 52775ff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"array",
"colorlib",
"math",
"radiation",
"system",
"string",
"universe", # ester egg
Expand Down
17 changes: 17 additions & 0 deletions stdlib/radiation.rn
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
fun ValueError(message = null) -> message
fun TypeError(message = null) -> message
fun IOError(message = null) -> message
fun MemoryError(message = null) -> message
fun KeyError(message = null) -> message
fun IndexError(message = null) -> message
fun NotImplementedError(message = null) -> message
fun AssertionError(message = null) -> message
fun SyntaxError(message = null) -> message
fun KeyboardInterrupt(message = null) -> message
fun StopIteration(message = null) -> message
fun DeprecationWarning(message = null) -> message
fun ReferenceError(message = null) -> message
fun BufferError(message = null) -> message
fun ArithmeticError(message = null) -> message
fun LogicalError(message = null) -> message
fun RuntimeError(message = null) -> message

0 comments on commit 52775ff

Please sign in to comment.