Package com.dottydingo.hyperion.api

Examples of com.dottydingo.hyperion.api.ErrorDetail


    protected List<ErrorDetail> buildErrorDetails(ValidationErrorContext errorContext,PersistenceContext persistenceContext)
    {
        List<ErrorDetail> errorDetails = new ArrayList<ErrorDetail>();
        for (ValidationErrorHolder holder : errorContext.getValidationErrors())
        {
            ErrorDetail errorDetail = new ErrorDetail();
            errorDetail.setCode(holder.getResourceCode());
            errorDetail.setMessage(messageSource.getMessage(holder.getResourceCode(), holder.getParameters(), persistenceContext.getLocale()));
            errorDetails.add(errorDetail);
        }

        return errorDetails;
    }
View Full Code Here

TOP

Related Classes of com.dottydingo.hyperion.api.ErrorDetail

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.