NubladoRedirectError#
- exception rubin.nublado.client.NubladoRedirectError(message, url, user=None, *, context=None, failed_at=None, started_at=None)#
Bases:
NubladoErrorLoop or unexpected redirect outside of the Nublado URL space.
- Parameters:
message (
str) – Exception message.user (
str|None, default:None) – User Nublado client was acting on behalf of.context (
CodeContext|None, default:None) – The code context for this operation, if any.failed_at (
datetime|None, default:None) – When the operation failed. Omit to use the current time.started_at (
datetime|None, default:None) – When the operation that failed began.url (
str) – URL at which the redirect loop was detected.
- context#
The code context for this operation, if any.
- failed_at#
When the operation failed.
- started_at#
When the operation that ended in an exception started.
- url#
URL at which the redirect loop was detected.
- 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:
- to_slack()#
Format the error as a Slack Block Kit message.
- Returns:
Formatted Slack message.
- Return type: