Raise an error if stereotype is not found.