Syntax Lookup
Enter some language construct you want to know more about.
This is the @throws decorator.
This decorator requires
reanalyze
, a code analysis tool for ReScript, to be installed. Click here to read about how you get started with reanalyze..
@throws
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 @throws(Exn)
or @throws([E1, E2, E3])
for multiple exceptions.