square / retrofit

A type-safe HTTP client for Android and the JVM
https://square.github.io/retrofit/
Apache License 2.0
43.11k stars 7.3k forks source link

Public RetrofitError #802

Closed CanOrhan closed 9 years ago

CanOrhan commented 9 years ago

I was creating a mock API Client using Dagger & Retrofit and though it may be useful to be able to return a mock RetrofitError in my callbacks but, unfortunately, it's private. Is there another way that this should be achieved?

JakeWharton commented 9 years ago

It isn't private, and it has static factory methods to quickly create instances.

On Sat, Apr 4, 2015, 8:13 AM Can Orhan notifications@github.com wrote:

I was creating a mock API Client using Dagger & Retrofit and though it may be useful to be able to return a mock RetrofitError in my callbacks but, unfortunately, it's private. Is there another way that this should be achieved?

— Reply to this email directly or view it on GitHub https://github.com/square/retrofit/issues/802.

CanOrhan commented 9 years ago

Urgh. I'm sorry.