Examples of LessCompilationException


Examples of com.citytechinc.cq.clientlibs.api.services.clientlibs.compilers.less.exceptions.LessCompilationException

        if (!(lesserror instanceof Undefined || lesserror == UniqueTag.NOT_FOUND)) {
            String lessErrorString = lessErrorToString(lesserror);
            LOG.error("A LESS compilation error was encountered : " + lessErrorString);
            LOG.debug(sanitizeSourceString(source));
            throw new LessCompilationException("A LESS compilation error was encountered : " + lessErrorString);
        }
        if (result instanceof Undefined) {
            LOG.error("An undefined result was the product of the LESS compilation.");
            throw new LessCompilationException("An undefined result was the product of the LESS compilation.");
        }

        String resultCss = result.toString();

        return resultCss;
View Full Code Here

Examples of com.citytechinc.cq.clientlibs.api.services.clientlibs.compilers.less.exceptions.LessCompilationException

        try {
            return context.compileReader(scriptReader, path, 0, null);
        } catch (IOException e) {
            LOG.error("IO Exception hit requesting less compiler script from project resources", e);
            throw new LessCompilationException("IO Exception hit requesting less compiler script from project resources", e);
        } finally {
            IOUtils.closeQuietly(scriptStream);
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.