Adding onErrorUse method