Calling callback function on error from did[Not]Throw