GafaelfawrParseError#

exception controller.exceptions.GafaelfawrParseError(message, error)#

Bases: SlackException

Unable to parse the reply from Gafaelfawr.

Parameters:
  • message (str) – Summary error message.

  • error (str) – Detailed error message, possibly multi-line.

classmethod from_exception(exc)#

Create an exception from a Pydantic parse failure.

Parameters:

exc (ValidationError) – Pydantic exception.

Returns:

Constructed exception.

Return type:

GafaelfawrParseError

to_slack()#

Convert to a Slack message for Slack alerting.

Returns:

Slack message suitable for posting as an alert.

Return type:

safir.slack.blockkit.SlackMessage