Package co.cask.cdap.client.exception

Examples of co.cask.cdap.client.exception.DatasetNotFoundException


    UnAuthorizedAccessTokenException {
    URL url = config.resolveURL(String.format("data/datasets/%s", datasetName));
    HttpResponse response = restClient.execute(HttpMethod.DELETE, url, config.getAccessToken(),
                                               HttpURLConnection.HTTP_NOT_FOUND);
    if (response.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
      throw new DatasetNotFoundException(datasetName);
    }
  }
View Full Code Here

TOP

Related Classes of co.cask.cdap.client.exception.DatasetNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.