# FINALLY: Exception/Error Trapping

> Source: https://manual.pvxplus.com/directives/finally

## Format

**TRY**  
... logic to run ...

**CATCH**  
... logic to execute should an error occur

**FINALLY**
... optional logic to execute after the **TRY** or **CATCH** logic completes

**END_TRY**

## Description

For a description of the **FINALLY** directive, see **[TRY](https://manual.pvxplus.com/directives/try)** directive.

*(The TRY .. CATCH ..FINALLY .. END_TRY directives were added in PxPlus v10.10.)*
