`verify an exception is caught when thrown from a task handler`