mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
18 lines
405 B
Python
18 lines
405 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__ % value
|
|
|
|
class InvalidDocument(Exception):
|
|
"""
|
|
The document retrieved from the EVE API is not a valid XML document
|
|
"""
|
|
def __str__(self):
|
|
return self.__doc__
|
|
|