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

0
7 comments

Hi Michal,

unfortunately it is not possible.
Thank you

0
Avatar
Permanently deleted user

Is there a way to do this now? I'd like to do the same (only with "extends RuntimeException").

0

@... May you show how exactly you are generating the class? A short screencast would be appreciated. 

0
Avatar
Permanently deleted user

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

 

0

It is not possible. Here is the feature request: https://youtrack.jetbrains.com/issue/IDEABKL-4191

Please vote and follow. 

0
Avatar
Permanently deleted user

Thanks Konstantin Annikov I have voted for that feature request now.

Why is it currently not possible?  Just curious.

0

Seems to be hardcoded. 

0

Please sign in to leave a comment.