Commits

Walter Dörwald  committed f79bd83

Einige Exceptions gefixt.

  • Participants
  • Parent commits 68ae5cf

Comments (0)

Files changed (2)

File xist/errors.py

 	exception that is raised, when XSC finds an illegal object in its object tree
 	"""
 
-	def __init__(self,lineno,object):
-		Error.__init__(self,lineno)
+	def __init__(self,location,object):
+		Error.__init__(self,location)
 		self.object = object
 
 	def __str__(self):
 	exception that is raised, when a character reference is malformed (e.g. &#foo;)
 	"""
 
-	def __init__(self,lineno,name):
-		Error.__init__(self,lineno)
+	def __init__(self,location,name):
+		Error.__init__(self,location)
 		self.name = name
 
 	def __str__(self):
 	(i.e. one that wasn't registered via registerEntity)
 	"""
 
-	def __init__(self,lineno,name):
-		Error.__init__(self,lineno)
+	def __init__(self,location,name):
+		Error.__init__(self,location)
 		self.name = name
 
 	def __str__(self):
 	and there is more than one element registered with this name.
 	"""
 
-	def __init__(self,lineno,name):
-		Error.__init__(self,lineno)
+	def __init__(self,location,name):
+		Error.__init__(self,location)
 		self.name = name
 
 	def __str__(self):
 			if len(elementsfornamespaces.keys())==1: # ... and there is exactly one element with this name => use it
 				element = elementsfornamespaces.values()[0]
 			else:
-				raise AmbiguousElementError(-1,name) # there is more than one
+				raise AmbiguousElementError(self.__here(),name) # there is more than one
 		else: # element name was qualified with a namespace
 			try:
 				element = elementsfornamespaces[name[0]]