ComparisonError#

exception mobu.exceptions.ComparisonError(*, expected, received)#

Bases: SlackException

Comparing two strings failed.

Parameters:
  • expected (str)

  • received (str)

to_sentry()#

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

This is the generic version that only adds the username as a tag. Child exceptions may want to override it to add more metadata.

Return type:

SentryEventInfo