Syntax Lookup
Enter some language construct you want to know more about.
This is the @raises decorator.
Deprecated since v12.0.0. Use the @throws decorator instead.
This decorator requires
reanalyze
, a code analysis tool for ReScript, to be installed. Click here to read about how you get started with reanalyze..
@raises
is picked up by reanalyze's exception analysis, and acknowledges that a function can throw exceptions that are not caught, and suppresses a warning in that case. Callers of the functions are then subjected to the same rule. Example @raises(Exn)
or @raises([E1, E2, E3])
for multiple exceptions.