Java Code Examples for org.apache.olingo.odata2.api.ep.EntityProviderException#MISSING_RESULTS_ARRAY

The following examples show how to use org.apache.olingo.odata2.api.ep.EntityProviderException#MISSING_RESULTS_ARRAY . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JsonFeedConsumer.java    From olingo-odata2 with Apache License 2.0 5 votes vote down vote up
private void readFeedContent() throws IOException, EdmException, EntityProviderException {
  while (reader.hasNext()) {
    final String nextName = reader.nextName();
    handleName(nextName);
  }

  if (!resultsArrayPresent) {
    throw new EntityProviderException(EntityProviderException.MISSING_RESULTS_ARRAY);
  }
}
 
Example 2
Source File: JsonFeedDeserializer.java    From olingo-odata2 with Apache License 2.0 5 votes vote down vote up
/**
 * 
 * @throws IOException
 * @throws EdmException
 * @throws EntityProviderException
 */
private void readFeedContent() throws IOException, EdmException, EntityProviderException {
  while (reader.hasNext()) {
    final String nextName = reader.nextName();
    handleName(nextName);
  }

  if (!resultsArrayPresent) {
    throw new EntityProviderException(EntityProviderException.MISSING_RESULTS_ARRAY);
  }
}