NubladoExecutionError#

exception rubin.nublado.client.NubladoExecutionError(user, *, code=None, context=None, error=None, failed_at=None, status=None, started_at=None)#

Bases: NubladoError

Error generated by code execution in a notebook on JupyterLab.

Parameters:
  • user (str) – User mobu was operating as when the exception happened.

  • code (str | None, default: None) – Python code that failed execution.

  • context (CodeContext | None, default: None) – The code context for this operation, if any.

  • error (str | None, default: None) – Error result from the code execution (usually a traceback).

  • failed_at (datetime | None, default: None) – When the operation failed. Omit to use the current time.

  • status (str | None, default: None) – JupyterLab execution status from the WebSocket message.

  • started_at (datetime | None, default: None) – When the operation that failed began.

context#

The code context for this operation, if any.

code#

Python code that failed execution.

error#

Error result from the code execution (usually a traceback).

failed_at#

When the operation failed.

started_at#

When the operation that ended in an exception started.

status#

JupyterLab execution status from the WebSocket message.

user#

User Nublado client was acting on behalf of.

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