WeTransfer/Mocker

Support custom Error

Closed this issue · 1 comments

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

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.