2017-07-21 02:20:31 +02:00
|
|
|
from django.utils.translation import ugettext as _
|
|
|
|
|
2017-11-16 00:53:11 +01:00
|
|
|
from zerver.lib.exceptions import ErrorCode, JsonableError
|
2017-07-21 02:20:31 +02:00
|
|
|
|
|
|
|
class BadEventQueueIdError(JsonableError):
|
|
|
|
code = ErrorCode.BAD_EVENT_QUEUE_ID
|
|
|
|
data_fields = ['queue_id']
|
|
|
|
|
2018-05-10 19:13:36 +02:00
|
|
|
def __init__(self, queue_id: str) -> None:
|
|
|
|
self.queue_id = queue_id # type: str
|
2017-07-21 02:20:31 +02:00
|
|
|
|
|
|
|
@staticmethod
|
2018-05-10 19:13:36 +02:00
|
|
|
def msg_format() -> str:
|
2017-07-21 02:20:31 +02:00
|
|
|
return _("Bad event queue id: {queue_id}")
|