11 lines
295 B
Python
11 lines
295 B
Python
class sluggardException(Exception):
|
|
def __init__(self, message, error_code=None):
|
|
self.error_code = error_code
|
|
self.message = message
|
|
|
|
def __str__(self):
|
|
return f"{self.error_code} -> {self.message}"
|
|
|
|
class InvalidJsonResponse(sluggardException):
|
|
"""Invalid Json Response"""
|
|
|