# Can I use the FailureHandling option by itself without attaching it an event

**URL:** <https://forum.katalon.com/t/can-i-use-the-failurehandling-option-by-itself-without-attaching-it-an-event/40081>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [February 19, 2020, 3:56pm UTC](https://forum.katalon.com/t/can-i-use-the-failurehandling-option-by-itself-without-attaching-it-an-event/40081 "2020-02-19T15:56:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Timo\_Kuisma1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/timo_kuisma1/32/16103_2.png) [@Timo\_Kuisma1](https://forum.katalon.com/u/Timo_Kuisma1)\
**Post date:** [February 19, 2020, 4:16pm UTC](https://forum.katalon.com/t/can-i-use-the-failurehandling-option-by-itself-without-attaching-it-an-event/40081/2 "2020-02-19T16:16:38Z")

</div>

hi,

check this chain

> [@Exception Handling for Custom Keywords](http://forum.katalon.com/t/exception-handling-for-custom-keywords/11742):
>
> Hi, I have created a custom keyword where, if the validation fails, I throw an exception. I am calling that Custom Keyword in my Test Case that is surrounded in a Try…Catch block. The Exception thrown in the Custom Keyword is not caught in the Test Case’s catch block. Could not post the original script but, below is a sample with the same control flow public class CheckException { @Keyword def chkEx(){ boolean check = true if (check == false){ throw new Exception(“Boolean is fasle”) } …

---

_[View the full topic](https://forum.katalon.com/t/can-i-use-the-failurehandling-option-by-itself-without-attaching-it-an-event/40081)._
