Back to Intellij Community

Catch Statement Declaration.Java

java/java-impl/resources/fileTemplates/code/Catch Statement Declaration.java.html

2025.3-rc-2603 B
Original Source

| Fills the catch parameter when it is generated, e.g. when the Code | Surround with... function is called.
This built-in template is editable. For example, you can make the generated parameter final and always use the predefined name despite of the qualified name of the caught exception. |

| Predefined variables take the following values: | | ${EXCEPTION} | | Name of the Exception variable specified as a catch parameter derived from the caught exception type, e , if the qualified name ends with Exception. | | ${EXCEPTION_TYPE} | | Type of the catch parameter. |