# Java/C++ pet.catch() update

**URL:** https://discourse.codecombat.com/t/java-c-pet-catch-update/33561
**Category:** Announcements
**Created:** [August 15, 2022, 5:22am UTC](https://discourse.codecombat.com/t/java-c-pet-catch-update/33561 "2022-08-15T05:22:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)
#### Post date: [August 15, 2022, 5:22am UTC](https://discourse.codecombat.com/t/java-c-pet-catch-update/33561/1 "2022-08-15T05:22:07Z")

</div>

# Wolf Pup pet.catch() Java/C++ Fix

As an addition to the [previous update](https://discourse.codecombat.com/t/throw-ability-update/33357), the `pet.catch()` ability has been fixed for Java/C++ languages, which use the phrase `catch` for exception handling, therefore creating a conflict in the code. The new change will rename the `catch` ability to `catchProjectile()` to resolve this conflict. Additionally, `catch` will no longer appear in the UI(Such as method list, item description, snippets), and will be replaced by `catchProjectile`

**Note:** For players that have `catch`(old-version) in their previous code, it will not break, and players are able to use `catch()` instead of `catchProjectile`. However, this update added an alternative option for Java & C++ players to use the ability without breaking the code.

 ![wolf-pup](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/c/d/cd91e3fb8fa42bde383ffca863e1b7b26c105982.png)

* * *

To get notified of new announcements, navigate to [this](https://discourse.codecombat.com/c/announcements/25) link and change the notification settings next to the + New Topic button.
