2.43. Failure

The fail construction is used to abort a task with prejudice. A string argument may be given. A C++ exception is thrown. It cannot be caught by the Felix program (although it can be caught by the driver).
Start felix section to tut/tutorial/tut-1.43-0.flx[1 /1 ]
     1: #line 4330 "./lpsrc/flx_tutorial.pak"
     2: //Check termination:failure
     3: //Check program:abort
     4: #import <flx.flxh>
     5: // uncomment to test
     6: //fail "Aborted";
End felix section to tut/tutorial/tut-1.43-0.flx[1]
Start data section to tut/tutorial/tut-1.43-0.expect[1 /1 ]
End data section to tut/tutorial/tut-1.43-0.expect[1]