2022-05-16 10:46:34 +12:00
|
|
|
class Error(Exception):
|
|
|
|
|
"""
|
|
|
|
|
An unspecified error.
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MissingPermission(Error):
|
|
|
|
|
"""
|
|
|
|
|
Missing permission when calling the API.
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
class InvalidData(Error):
|
|
|
|
|
"""
|
|
|
|
|
Missing Data required for request
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
Error (_type_): _description_
|
|
|
|
|
"""
|
2022-05-27 22:19:17 +12:00
|
|
|
|
|
|
|
|
class AccountNotFound(Error):
|
|
|
|
|
"""
|
|
|
|
|
Account not found
|
|
|
|
|
|
2022-06-26 07:57:43 +12:00
|
|
|
Args:
|
|
|
|
|
Error (_type_): _description_
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
class ContactNotFound(Error):
|
|
|
|
|
"""
|
|
|
|
|
Account not found
|
|
|
|
|
|
2022-09-13 14:47:48 +12:00
|
|
|
Args:
|
|
|
|
|
Error (_type_): _description_
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
class TooManyAttempts(Error):
|
|
|
|
|
"""
|
|
|
|
|
Too Many attempts to API
|
|
|
|
|
|
2022-05-27 22:19:17 +12:00
|
|
|
Args:
|
|
|
|
|
Error (_type_): _description_
|
|
|
|
|
"""
|