added errors_rid event attribute to the raise_error function