How to execute a stage post the failure of a previous stage?

How to execute a particular on failure of the immediate previous stage?
Stage A -> Pass
Stage B -> Fail
Stage C -> run on failure of Stage B alone.