Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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.");