private boolean checkErrorResult(SyncRequestEvent event, int itemId) throws ServiceException { Result result = event.getResult(); if (result.isError()) { ErrorResult error = (ErrorResult) result; if (!ignoreError(error, event)) { String msg = String.format( "Error code: %s\nError description: %s\nRequest event:\n%s", error.getCode(), error.getUserMessage(), event); localData.syncContactFailed(new SyncException("Sync request event failed"), itemId, msg); return false; } } return true; }