Feature request: Additional Intention Action for Exception in super()

已回答

Intellij already allows me to create auto-create try-catch statements for expressions that throw exceptions. But sometimes I find myself calling some method that throws an Exception in the super() call. What I find myself doing is to move that call to a private static method, where I can then catch/handle the exception and return a different value or wrap the Exception in a RuntimeException. This process is quite tedious and imho an additional intention action would make sense here.

Of course this would be more of a nieche feature, but those smart suggestions are what makes Intellij so great!

0

请先登录再写评论。