Package com.emc.vipr.client.exceptions

Examples of com.emc.vipr.client.exceptions.ValidationException


    public ClientResponse handle(ClientRequest request) throws ClientHandlerException {
        ClientResponse response = getNext().handle(request);
        int status = response.getStatus();
        if (supportsPortalValidation(request) && status == 400) {
            List<ValidationError> errorsList = ApiListUtils.getEntityList(config, new GenericType<List<ValidationError>>() {}, response);
            ValidationException exception = new ValidationException(response.getStatus(), errorsList);
            log.error(exception.getMessage());
            throw exception;
        }
        return response;
    }
View Full Code Here


    public ClientResponse handle(ClientRequest request) throws ClientHandlerException {
        ClientResponse response = getNext().handle(request);
        int status = response.getStatus();
        if (supportsPortalValidation(request) && status == 400) {
            List<ValidationError> errorsList = ApiListUtils.getEntityList(config, new GenericType<List<ValidationError>>() {}, response);
            ValidationException exception = new ValidationException(response.getStatus(), errorsList);
            LOG.error(exception.getMessage());
            throw exception;
        }
        return response;
    }
View Full Code Here

TOP

Related Classes of com.emc.vipr.client.exceptions.ValidationException

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.