SlackException#

exception safir.slack.blockkit.SlackException(message, user=None, *, failed_at=None)#

Parent class of exceptions that can be reported to Slack.

Intended to be subclassed. Subclasses may wish to override the to_slack method.

Parameters:
  • message (str) – Exception string value, which is the default Slack message.

  • user (Optional[str], default: None) – Identity of user triggering the exception, if known.

  • failed_at (Optional[datetime], default: None) – When the exception happened. Omit to use the current time.