proper python3 exception inheritance

master
Greg Hogan 2019-10-16 00:15:16 -07:00
parent 6ba0f47b56
commit 55957d6e4e
1 changed files with 4 additions and 1 deletions

View File

@ -213,10 +213,13 @@ class MessageTimeoutError(Exception):
class NegativeResponseError(Exception):
def __init__(self, message, service_id, error_code):
super(Exception, self).__init__(message)
self.message = message
self.service_id = service_id
self.error_code = error_code
def __str__(self):
return self.message
class InvalidServiceIdError(Exception):
pass