Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
stephbzr
Contributor III
Contributor III

Causing an error in a tJavaFlex

Hello,

I have recently started to use the tJavaFlex component to write my own code. I am using if/else conditions to check the structure of a line, I would like to throw an exception when an if is not met. This exception I catch with tLogCatcher. What Java code can I use for this?

Labels (5)
1 Reply
Anonymous
Not applicable

Hello,

 

Did you try:

throw new Exception("Something is not right here.");