IOrders.onError refactor