Package org.apache.deltacloud.client

Examples of org.apache.deltacloud.client.DeltaCloudNotFoundClientException


//      return StreamUtils.writeTo(in, System.err);
      return in;    } catch (FileNotFoundException e) {
      /*
       * thrown by #connect when server resonds with 404
       */
      throw new DeltaCloudNotFoundClientException(
          MessageFormat.format("Could not find resource {0}", request.getUrlString()));
    } catch (IOException e) {
      /*
       * thrown by #connect when server resonds with 401.
       */
 
View Full Code Here


    } else if (HttpStatusCode.UNAUTHORIZED.isStatus(statusCode)) {
      throw new DeltaCloudAuthClientException(
          MessageFormat.format("The server reported an authorization error \"{0}\" on requesting \"{1}\"",
                  statusMessage, requestUrl));
    } else if (HttpStatusCode.NOT_FOUND.isStatus(statusCode)) {
      throw new DeltaCloudNotFoundClientException(MessageFormat.format(
          "The server could not find the resource \"{0}\"",
          requestUrl));
    } else if (HttpStatusRange.CLIENT_ERROR.isInRange(statusCode)
        || HttpStatusRange.SERVER_ERROR.isInRange(statusCode)) {
      throw new DeltaCloudClientException(
View Full Code Here

TOP

Related Classes of org.apache.deltacloud.client.DeltaCloudNotFoundClientException

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.