Set RaiseError during transaction