Can I intentionally fail or throw exception in a painless script for update API?

Hello experts,

I would like to throw exception or return error based on application logic in a painless script during update, since update API cannot have any return. But I couldn't find related info on the website yet. Could someone help me with this?

Thank you very much!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.