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?