Rework eve_proxy to remove dependancy on eve_api and allow it to handle downtime situations better

This commit is contained in:
2010-11-10 11:36:28 +00:00
parent c6429a4e56
commit 1e52c87a46
5 changed files with 117 additions and 147 deletions

17
eve_proxy/exceptions.py Normal file
View File

@@ -0,0 +1,17 @@
class DocumentRetrievalError(Exception):
"""
Unable to retrieve a document from the EVE API: %s
"""
def __init__(self, value):
self.value = value
def __str__(self):
return self.__doc_ % value_
class InvalidDocument(Exception):
"""
The document retrieved from the EVE API is not a valid XML document
"""
def __str__(self):
return self.__doc__