API Core: Retry.__init__ add on_error (#8892)

2 files changed