handle_api_method_exception()
, which will merge it into the response if there is anything in it.result
, errors
, etc.None
This was written as part of refactoring some existing Art Money code, where a multi-step process might create a main DB record but then fail to create subsidiary ones. The error reports would include the ID of the main record, so that it could be injected into the form, and then subsequent retries would include that ID in the data submitted, and the back end would know to skip creating the main record this time (at least I think that's the intention). There are possibly better ways to achieve that particular goal, but I suspect there would be other circumstances where we would find this option useful anyway.