GafaelfawrParseError#

exception mobu.exceptions.GafaelfawrParseError(message, error, user=None)#

Bases: SentryException

Unable to parse the reply from Gafaelfawr.

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

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

  • user (str | None, default: None) – Username of the user involved.

classmethod from_exception(exc, user=None)#

Create an exception from a Pydantic parse failure.

Parameters:
  • exc (ValidationError) – Pydantic exception.

  • user (str | None, default: None) – Username of the user involved.

Returns:

Constructed exception.

Return type:

GafaelfawrParseError