Package com.microsoft.windowsazure.exception

Examples of com.microsoft.windowsazure.exception.ServiceException


    public void deleteBlob(String container, String blob)
            throws ServiceException {
        try {
            service.deleteBlob(container, blob);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here


    public void deleteBlob(String container, String blob,
            DeleteBlobOptions options) throws ServiceException {
        try {
            service.deleteBlob(container, blob, options);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

    @Override
    public ListContainersResult listContainers() throws ServiceException {
        try {
            return service.listContainers();
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

    public ListContainersResult listContainers(ListContainersOptions options)
            throws ServiceException {
        try {
            return service.listContainers(options);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

    @Override
    public void createContainer(String container) throws ServiceException {
        try {
            service.createContainer(container);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

    public void createContainer(String container, CreateContainerOptions options)
            throws ServiceException {
        try {
            service.createContainer(container, options);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

    @Override
    public void deleteContainer(String container) throws ServiceException {
        try {
            service.deleteContainer(container);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

    public void deleteContainer(String container, DeleteContainerOptions options)
            throws ServiceException {
        try {
            service.deleteContainer(container, options);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

    public ListBlobBlocksResult listBlobBlocks(String container, String blob)
            throws ServiceException {
        try {
            return service.listBlobBlocks(container, blob);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }
View Full Code Here

            if (shouldTrace) {
                CloudTracing.receiveResponse(invocationId, httpResponse);
            }
            int statusCode = httpResponse.getStatusLine().getStatusCode();
            if (statusCode != HttpStatus.SC_ACCEPTED) {
                ServiceException ex = ServiceException.createFromXml(httpRequest, requestContent, httpResponse, httpResponse.getEntity());
                if (shouldTrace) {
                    CloudTracing.error(invocationId, ex);
                }
                throw ex;
            }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.exception.ServiceException

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.