title: Retrofit generic response handler
body: <p>I wish to handle all my responses in single method. the purpose is to recall the service when the response code is not 3, when the response code is 3 I intend to first refresh the token and then recall the same service.</p>
  
  <p>I've created a <code>Basecallback</code> class to catch one method but I can't see the log and can't catch breakpoints.</p>
  
  <p>BASECALLBACK.class</p>
  
  <pre><code>public class BaseCallBack&lt;T&gt; implements Callback&lt;T&gt; {
  
   @Override
   public void onResponse(Call&lt;T&gt; call, Response&lt;T&gt; response) {
  
       if (!response.isSuccessful()){
           Log.d("BaseCallback","Response Fail");
       }
   }
  
   @Override
   public void onFailure(Call&lt;T&gt; call, Throwable t) {
       t.toString();
   }
  }
  </code></pre>
  
  <p>CALL METHOD</p>
  
  <pre><code> ApiManager.getInstance().getUsers().enqueue(new BaseCallBack&lt;List&lt;User&gt;&gt;() {
              @Override
              public void onResponse(Call&lt;List&lt;User&gt;&gt; call, Response&lt;List&lt;User&gt;&gt; response) {
  
                  if (response.isSuccessful()){
  
                  }
              }
  
              @Override
              public void onFailure(Call&lt;List&lt;User&gt;&gt; call, Throwable t) {
  
              }
          });
  </code></pre>
  
  <p>I just want to handle my services single method.</p>