Centralized error handling retrofit 2?
<p>Before retrofit 2, there was a way of handling erros centrally -  </p>

<pre><code>new retrofit.RestAdapter.Builder()
        .setEndpoint(apiUrl)
        .setLogLevel(retrofit.RestAdapter.LogLevel.FULL)
        .setErrorHandler(new CustomErrorHandler(ctx))
</code></pre>

<p>But now in Retrofit 2, RestAdapter has been renamed to <code>Retrofit</code> and there is no <code>setErrorHandler()</code>. Is there a way to have centralized error handling using <code>Retrofit.Builder()</code> ?</p>