NubladoClientSlackException#
- exception rubin.nublado.client.NubladoClientSlackException(msg, user=None, *, started_at=None, failed_at=None)#
Bases:
SlackExceptionRepresents an exception that can be reported to Slack or Sentry.
This adds some additional fields to
SlackExceptionbut is otherwise equivalent. It is intended to be subclassed. Subclasses must override theto_slackandto_sentrymethods.- Parameters:
- started_at#
When the operation that ended in an exception started.
- annotations#
Additional annotations.
- common_blocks()#
Return common blocks to put in any alert.
- Returns:
Common blocks to add to the Slack message.
- Return type:
- common_fields()#
Return common fields to put in any alert.
- Returns:
Common fields to add to the Slack message.
- Return type:
- to_sentry()#
Return an object with tags and contexts to add to Sentry events.
- Returns:
Annotated Sentry object.
- Return type:
- to_slack()#
Format the error as a Slack Block Kit message.
- Returns:
Formatted Slack message.
- Return type: