def api_error(self, message):
        self._errors[NON_FIELD_ERRORS] = self.error_class([message])
Adds an error to the form's error dictionary after validation
dataset/ETHPy150Open CiscoSystems/avos/horizon/forms/base.py/SelfHandlingForm.api_error