NubladoClientSlackWebException#

exception rubin.nublado.client.NubladoClientSlackWebException(message, *, failed_at=None, started_at=None, method=None, url=None, user=None, status=None, body=None)#

Bases: SlackWebException, NubladoClientSlackException

Represents an exception that can be reported to Slack.

Similar to NubladoClientSlackException, this adds some additional fields to SlackWebException but is otherwise equivalent. It is intended to be subclassed. Subclasses may want to override the to_slack method.

Parameters:
common_blocks()#

Return common blocks to put in any alert.

Returns:

Common blocks to add to the Slack message.

Return type:

list of safir.slack.blockkit.SlackBaseBlock

to_sentry()#

Return an object with tags and contexts to add to Sentry events.

Returns:

Annotated Sentry object.

Return type:

SentryEventInfo

to_slack()#

Format the error as a Slack Block Kit message.

Returns:

Formatted Slack message.

Return type:

SlackMessage