Hi Kevin
Thanks for your reply. My code is throwing a Runtime Exception, and I've only got ROBOT_CONTINUE_ON_FAILURE set to true set, but Robot Framework still reports it as a fatal error. I'm not setting both variables.
I've found some other code that I've written in the past which used the ROBOT_EXIT_ON_FAILURE variable, so I've tried this and set it to false, and it appears to behave as expected. The test carries on.
I need to use the Run Keyword And Expect Error keyword because I only want the test to carry on if the expected exception is thrown, not just if any exception is thrown. The Run Keyword And Ignore Error keyword ignores all exceptions.
Something I have noticed is that when I add "public static final boolean ROBOT_CONTINUE_ON_FAILURE = true;" to my code, inteliJ doesn't highlight the variable as being used, but if I use the ROBOT_EXIT_ON_FAILURE variable it is highlighted as being used.
It looks like the ROBOT_CONTINUE_ON_FAILURE variable doesn't actually get used anywhere.
Cheers
Paul