Better handling of character API import and error handling

This commit is contained in:
2011-01-06 10:43:22 +00:00
parent 377b510cba
commit 300c6e35f6
2 changed files with 39 additions and 14 deletions

View File

@@ -13,4 +13,12 @@ class APINoUserIDException(Exception):
Raised when a userID is required, but missing.
"""
def __str__(self):
return "This query requires a valid userID, but yours is either missing or invalid."
return "This query requires a valid userID, but yours is either missing or invalid."
class APIAccessException(Exception)
"""
Raised on Access errors of any kind, network and EVE API failures
"""
def __str__(self):
return "An error was encountered while accessing the EVE API."