Back to Intellij Community

Catch Statement Body.Java

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

2025.3-rc-2514 B
Original Source

| Fills the body of a catch block when it is generated, e.g. when the Code | Surround with... function is applied.
This built-in template is editable. Along with Java expressions and comments, you can also use the predefined variables that will be then expanded into the corresponding values. |

| Predefined variables take the following values: | | ${EXCEPTION} | | Name of the Exception variable specified as a catch parameter | | ${EXCEPTION_TYPE} | | Type of the catch parameter |