fail-if: capture divide zero error

Closes #1148.

Also has capacity to capture Type, Index and Value errors.