BaseAssertionError#

exception safir.metrics.BaseAssertionError[P: EventPayload](expected, actual, actual_models)#

Bases: ABC, AssertionError, Generic[P]

Base assertion error with common attributes and messaging.

Parameters:
  • expected (ModelDumpList)

  • actual (ModelDumpList)

  • actual_models (list[P])

abstractmethod errormsg()#

Return a string to be added to the exception message.

Return type:

str