Disable 'throw' of exception caught locally in Webstorm

Hello,

I would like to disable the following hints in JetBrains Webstorm:

'throw' of exception caught locally 
 

Description of the hint:

Inspection info: Reports a throw statement whose exceptions are always caught by the containing try statement. Using throw statements as a goto to change the local flow of control is confusing.

 

Is there an option, to disable this throwing a warning?

 

Thank you!

1
3 comments

Did you try disabling JavaScript and TypeScript | Try statement issues | Exception used for local control-flow inspection in Settings | Editor | Inspections?

2

Hi Elena,

Many thanks. This is exactly the option I was looking for!

0

Please sign in to leave a comment.