# Workflow failure

**URL:** <https://community.temporal.io/t/workflow-failure/8455>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [June 5, 2023, 12:27pm UTC](https://community.temporal.io/t/workflow-failure/8455 "2023-06-05T12:27:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prerna\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/prerna_sharma/32/3868_2.png) [@Prerna\_Sharma](https://community.temporal.io/u/Prerna_Sharma)\
**Post date:** [June 5, 2023, 12:27pm UTC](https://community.temporal.io/t/workflow-failure/8455/1 "2023-06-05T12:27:12Z")

</div>

Are there any settings that can ensure a workflow does not fail in javaSDK, regardless of any type of exceptions that may occur?

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [June 5, 2023, 2:11pm UTC](https://community.temporal.io/t/workflow-failure/8455/2 "2023-06-05T14:11:24Z")

</div>

Put try-catch in the workflow methods and do not rethrow any exceptions.
