Files
test-auth/app/eve_proxy/exceptions.py

18 lines
410 B
Python

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__ % self.value
class InvalidDocument(Exception):
"""
The document retrieved from the EVE API is not a valid XML document
"""
def __str__(self):
return self.__doc__