Skip to content

Commit

Permalink
Remove synchronous from ErrorHandler docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc3m1 committed May 14, 2014
1 parent ed67aca commit 2d2fa49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ <h4>Content format Agnostic</h4>
SoundCloudService service = restAdapter.create(SoundCloudService.class);</pre>
<h4>Custom Converters</h4>
<p>If you need to communicate with an API that uses a content-format that Retrofit does not support out of the box (e.g. YAML, txt, custom format) or you wish to use a different library to implement an existing format, you can easily create your own converter. Create a class that implements the <a href="https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit/converter/Converter.java"><code>Converter</code> interface</a> and pass in an instance when building your adapter.</p>
<h4>Custom Synchronous Error Handling</h4>
<p>If you need custom error handling for synchronous requests, you may provide your own <code>ErrorHandler</code>. The following code shows how to throw a custom exception when a response returns a HTTP 401 status code</p>
<h4>Custom Error Handling</h4>
<p>If you need custom error handling for requests, you may provide your own <code>ErrorHandler</code>. The following code shows how to throw a custom exception when a response returns a HTTP 401 status code</p>
<pre class="prettyprint">
class MyErrorHandler implements ErrorHandler {
@Override public Throwable handleError(RetrofitError cause) {
Expand Down

0 comments on commit 2d2fa49

Please sign in to comment.