qat.core.assertion.assert_plugin

qat.core.assertion.assert_plugin(assertion: bool, message: str, *, code: int = 1)

Checks an assertion and raise a PluginException if the assertion is not True

Parameters:
  • assertion (bool) – raise an exception if False

  • message (str) – error message

Keyword Arguments:

code (ErrorType, optional) – error code. Defaults to ErrorType.ABORT