onError(action: (err: Error)=>void): voidRegister a custom error handler. Can be used to draw a custom error screen.sincev3000.0