Added raise_for_exception.