You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
415 B
Python

class EmptyQueueException(Exception):
"""No message to get"""
class MessageError(ValueError):
"""Base for all message exceptions"""
class UndecodableMessageException(MessageError):
"""Can't decode as JSON"""
class InvalidMessageSizeException(MessageError):
def __init__(self, message=None):
"""Message size if bigger than it should be"""
self.message = message