Exception Handling : Catch block is not working

for (def rowNum = 1; rowNum <= 2; rowNum++) {
try {
KeywordLogger log = new KeywordLogger()
log.logInfo(“Execution strats”)
WebUI.callTestCase(findTestCase(‘CP/Dummy Case’), [:], FailureHandling.OPTIONAL)

	log.logInfo("in try")
}
catch (Exception ex) {
	KeywordLogger log = new KeywordLogger()
	log.logInfo("testmsg")
	
	
	
    WebUI.closeBrowser()
	

    continue
} 
WebUI.closeBrowser()

}

catch block code is not working i am not getting any log from catch block please refer above code…
I having issue for data driven, i want to execute 1k rows with 15 test cases in the in a loop,
e.g. when Tc5 from out of 15 test cases is getting failed then it is still getting execute the TC6 i want to continue it from TC1 from next excel row…

in groovy (not sure about java) you can catch any and all exception without need to set exception type …
try to change catch like this:

catch(e){
  println "we catched: ${e}"
}

hi,

i guess that should be used KeywordUtil instead of KeywordLogger
https://docs.katalon.com/javadoc/index.html