WeTransfer / Mocker

Mock Alamofire and URLSession requests without touching your code implementation
MIT License
1.1k stars 96 forks source link

Support custom Error #148

Closed toanbv-fabbi closed 11 months ago

toanbv-fabbi commented 1 year ago

Thanks for great library But I'm facing issue regarding custom error I tried mock error with AFError from Alamofire like this image Screenshot 2023-08-17 at 10 36 12

AFError may be AFError.responseValidationFailed(reason: .unacceptableStatusCode(code: 404)) or AFError.responseSerializationFailed(reason: .inputDataNilOrZeroLength) etc.. But I alway received AFError.sessionTaskFailed in closures

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.