View in project all lines where a certain exception may be thrown
Answered
Hello,
I'd like to find all places in a project where a certain exception may be thrown. The exception is unchecked, so I cannot look for catch / throws clauses. Any way to find all places in a project where this exception may be thrown?
Thanks in advance
Please sign in to leave a comment.
Please check https://intellij-support.jetbrains.com/hc/en-us/community/posts/206269539-how-can-I-see-in-intellij-where-exception-is-thrown-
I don't think you've read my question entirely or the post you linked me to; I said that "The exception is unchecked, so I cannot look for catch / throws clauses." The post you linked me suggests clicking on the "throws" keyword to highlight all uses.
There was a helpful plugin:
https://plugins.jetbrains.com/plugin/8157-checkmate
Also, there are some exceptions turned off by default, please check Editor | Inspections.