2021-07-05 21:44:11 +02:00
|
|
|
class PublisherError(Exception):
|
|
|
|
""" Generic publisher error """
|
|
|
|
|
2021-10-19 07:35:18 +02:00
|
|
|
pass
|
2021-07-05 21:44:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidAttribute(PublisherError):
|
|
|
|
""" Publisher defined with invalid or missing attribute """
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidBot(PublisherError):
|
|
|
|
""" Publisher refers to the wrong service bot """
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidCredentials(PublisherError):
|
|
|
|
""" Publisher cannot validate credentials """
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidEvent(PublisherError):
|
|
|
|
""" Publisher cannot validate events """
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidMessage(PublisherError):
|
|
|
|
""" Publisher cannot validate message """
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidResponse(PublisherError):
|
|
|
|
""" Publisher receives an invalid response from its service """
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidSettings(PublisherError):
|
|
|
|
""" Publisher settings are either missing or badly configured """
|
2021-09-26 20:12:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ZulipError(PublisherError):
|
|
|
|
""" Publisher receives an error response from Zulip"""
|
2021-10-24 21:32:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
class HTTPResponseError(PublisherError):
|
|
|
|
""" Publisher receives a HTTP error"""
|