file template for exception class
Answered
Hi,
is it possible to change template for Exception class?
When I create new class using Alt+Enter ("Show intention actions") a new class is created, but it extends Throwable - I would like to change it to Exception
thanks
Please sign in to leave a comment.
Hi Michal,
unfortunately it is not possible.
Thank you
Is there a way to do this now? I'd like to do the same (only with "extends RuntimeException").
@... May you show how exactly you are generating the class? A short screencast would be appreciated.
Thanks for looking into this Konstantin Annikov
Here's a quick screencast - using the same technique as Igor in 2011 (Alt+Enter --> Create class 'MyException'):
Currently running IntelliJ IDEA 2020.3.2 (Ultimate Edition) Build #IU-203.7148.57
It is not possible. Here is the feature request: https://youtrack.jetbrains.com/issue/IDEABKL-4191
Please vote and follow.
Thanks Konstantin Annikov I have voted for that feature request now.
Why is it currently not possible? Just curious.
Seems to be hardcoded.