DeserializeError#
- exception safir.redis.DeserializeError(msg, key, error)#
Bases:
SlackException
Raised when a stored Pydantic object in Redis cannot be decoded (and possibly decrypted) or deserialized.
- Parameters:
- to_slack()#
Format the exception as a Slack message.
This is the generic version that only reports the text of the exception and the base fields. Child exceptions may want to override it to add more metadata.
- Returns:
Slack message suitable for posting with
safir.slack.webhook.SlackWebhookClient
.- Return type: