Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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 (4)
1 Reply
Anonymous
Not applicable

Hello,

 

Did you try:

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