# User defined java class inside try catch error

**URL:** <https://community.automationedge.com/t/user-defined-java-class-inside-try-catch-error/10267>\
**Category:** Process Studio\
**Tags:** rpa, learning, process-studio, ps-steps\
**Created:** [July 28, 2023, 11:51am UTC](https://community.automationedge.com/t/user-defined-java-class-inside-try-catch-error/10267 "2023-07-28T11:51:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarun\_Gandhi](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Tarun\_Gandhi](https://community.automationedge.com/u/Tarun_Gandhi)\
**Post date:** [July 28, 2023, 11:51am UTC](https://community.automationedge.com/t/user-defined-java-class-inside-try-catch-error/10267/1 "2023-07-28T11:51:59Z")

</div>

I’m using user defined java class in order to perform encryption and trying to have it inside a try catch, it says that try catch doesn’t support user defined java class.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/d/d1160ad5bc23572141eb92ea4f9e8cb7b35e55ee.png)  
is there different approach to implement try catch since this is a big workflow.

---

<div class="post-metadata">

**Author:** ![Jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jane](https://community.automationedge.com/u/Jane)\
**Post date:** [July 31, 2023, 4:58am UTC](https://community.automationedge.com/t/user-defined-java-class-inside-try-catch-error/10267/2 "2023-07-31T04:58:24Z")

</div>

Hi! Tushar,

That’s a good point. The Try-Catch steps do not support some steps in Process Studio. For these steps you have to use error handling if possible.

You can use Try-Catch steps for the supported steps. You could also modularize your workflow by using child workflows.
