Use success to check that exception is thrown