orhanobut / wasp

Compact and easy to use, 'all-in-one' android network solution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to catch Exception onError method

cutiko opened this issue · comments

Greetings

We are having problems with the error 0. We cant figure it out what it is. So Im trying to implement New Relic, especifically this:

NewRelic.noticeNetworkFailure(String url, String httpMethod, long startTime, long endTime, Exception e)

This is the New Relic documentation

I have being looking in the repository but cant figure it out, and also trying to cast some of the error.somthing to Exception but is not posible.

How can we catch the exception in the onError method?

[EDITED]
If you are reading this please follow the link to an explanation for the error 0 #139

Hi @cutiko

I would admit that error handling is poor against the unknown errors. Let me check what I can do with this. Usually when there is an error which is not from network, as default status code is set to 0.

Greetings @orhanobut

Thanks, I hate to ask for so much but we are having a lot of problems with error 0.

#99

#139

Thanks.

Hi,

Is there a way to catch these exceptions? Like : volley.TimeoutError

@ergunkocak we found a work around, I really like WASP, Im glad I didnt had to change #139 hope to help