ModularM
Modular3y ago
4 replies
moosems_yeehaw

How to use `raises`

What does the raises keyword do for error handling, how do I use it, and what does it returns if the function fails? All I could in the docs was "Both support raising exceptions, but this must be explicitly declared on a fn with the raises keyword." If its for raising exceptions, how do I do this properly?
Was this page helpful?