Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Synchronous Error Handling #1095
Synchronous execution in Retrofit 1would throw a
The same code in v2 would look like this:
The question is really vague. Synchronous methods throw exceptions both on v1 and v2. You can use ErrorHandler on v1 to customize the error thrown.
If you have follow-ups, please ask on StackOverflow with the 'retrofit' tag as GitHub issues aren't the greatest place for that discussion.