title: Define a keyword to call only on failure in robot framework
body: <p>Is there any way we can define in <code>setting</code> or any other part of robot code to call keyword immediately when we have a particular kind of failure?</p>
  <p>We have <code>Test setup</code> and <code>Test Teardown</code>, which will run at the start as Test Setup or the end of the test case as Test Teardown, similar to that is there any way, we can define and call keyword based on failure</p>
  <p>The problem with using Teardown is when we have 5 lines of robot code (Keywords) if the failure happens on the second line, it will skip the third, fourth, and fifth line and directly runs the Teardown <em>this is the issue for me in using Teardown</em>. If we have a failure in the second line, it will call the defined  keyword which needs to be run and then comes back and run third, fourth, and fifth line (Without Skipping).</p>