I'm trying to figure out how to rescue from a Flex::HttpError 404 404: {"found":false error. when attempting to delete an item from the index that doesn't exist. It is an edge case where a deleted active record entry isn't removed from the index but I need to handle it at this point.
I would prefer that Flex handled this differently but I can understand the approach.
I just don't know how to rescue/recover - where to put the rescue code.
I'm trying to figure out how to rescue from a Flex::HttpError 404 404: {"found":false error. when attempting to delete an item from the index that doesn't exist. It is an edge case where a deleted active record entry isn't removed from the index but I need to handle it at this point.
I would prefer that Flex handled this differently but I can understand the approach.
I just don't know how to rescue/recover - where to put the rescue code.