@Override public void onSuccess(T interceptor) { if (!interceptor.canExecute(getAction())) { delegateFailure(interceptor); } else if (getDispatchRequest().isPending()) { delegateExecute(interceptor); } }
protected void delegateFailure(Interceptor interceptor) { InterceptorMismatchException exception = new InterceptorMismatchException(action.getClass(), interceptor.getActionType()); onFailure(exception); }