Package org.apache.deltacloud.client

Examples of org.apache.deltacloud.client.DeltaCloudClientException


        return null;
      }
      return unmarshall(element, deltacloudObject);
    } catch (Exception e) {
      // TODO: internationalize strings
      throw new DeltaCloudClientException(
          MessageFormat.format("Could not unmarshall type \"{0}\"", type), e);
    }

  }
View Full Code Here


  public DELTACLOUDOBJECT unmarshall(Element element, DELTACLOUDOBJECT resource) throws DeltaCloudClientException {
    try {
      return doUnmarshall(element, resource);
    } catch (Exception e) {
      // TODO: internationalize strings
      throw new DeltaCloudClientException(
          MessageFormat.format("Could not unmarshall type \"{0}\"", type), e);
    }
  }
View Full Code Here

  @Override
  public final InputStream request(DeltaCloudRequest request) throws DeltaCloudClientException {
    try {
      return doRequest(request);
    } catch (MalformedURLException e) {
      throw new DeltaCloudClientException(MessageFormat.format(
          "Could not connect to \"{0}\". The url is invalid.", request.getUrlString()), e);
    } catch(DeltaCloudClientException e) {
      throw e;
    } catch (Exception e) {
      throw new DeltaCloudClientException(e);
    }
  }
View Full Code Here

      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(
          MessageFormat.format("The server reported an error \"{0}\" on requesting \"{1}\"",
                  statusMessage, requestUrl));
    }
  }
View Full Code Here

    try {
      return doCreate(inputStream);
    } catch (Exception e) {
      // TODO: internationalize strings
      throw new DeltaCloudClientException(
          MessageFormat.format("Could not unmarshall resource of type \"{0}\"", type), e);
    }
  }
View Full Code Here

TOP

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

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.