def __repr__(self): """ EXAMPLES:: sage: gap(2) 2 """ s = ExpectElement.__repr__(self) if s.find('must have a value') != -1: raise RuntimeError, "An error occurred creating an object in %s from:\n'%s'\n%s"%(self.parent().name(), self._create, s) return s