Package org.auraframework.throwable

Examples of org.auraframework.throwable.AuraRuntimeException


            json.writeMapEntry("action", action);
            json.writeMapEntry("value", value);
            json.writeMapEntry("name", name);
            json.writeMapEnd();
        } catch (QuickFixException e) {
            throw new AuraRuntimeException(e);
        }
    }
View Full Code Here


        if (additionalAppCacheURLs != null) {
            Expression expression = AuraImpl.getExpressionAdapter().buildExpression(
                    TextTokenizer.unwrap(additionalAppCacheURLs), null);
            if (!(expression instanceof PropertyReference)) {
                throw new AuraRuntimeException(
                        "Value of 'additionalAppCacheURLs' attribute must be a reference to a server Action");
            }

            PropertyReference ref = (PropertyReference) expression;
            ref = ref.getStem();
View Full Code Here

        try {
            // FIXME: W-1242780 actually write something.
            writer = source.getWriter();
        } catch (Exception e) {
            throw new AuraRuntimeException(e);
        } finally {
            try {
                if (writer != null) {
                    writer.flush();
                    writer.close();
                }
            } catch (Exception e) {
                throw new AuraRuntimeException(e);
            }
        }
    }
View Full Code Here

        public FindInFilter(Set<DefDescriptor<?>> dset, File root) {
            super(dset, null);
            try {
                rootCanonicalPath = root.getCanonicalPath();
            } catch (IOException e) {
                throw new AuraRuntimeException(e);
            }
        }
View Full Code Here

                message = m.substring(start, at).trim();
                line = Integer.parseInt(m.substring(lineStart, comma));
                startColumn = Integer.parseInt(m.substring(columnStart, columnEnd));
            }
        } catch (Exception e) {
            throw new AuraRuntimeException("cannot parse " + m, e);
        }

        return new AuraValidationError("cssparser", filename, line, startColumn, message);
    }
View Full Code Here

            case ACTION:
            case DESCRIPTION:
            case EXAMPLE:
            case INCLUDE_REF:
                // TODO: FIXME
                throw new AuraRuntimeException(String.format("Find on %s defs not supported.", matcher.getDefType()
                        .name()));
            }
            rLock.lock();
            try {
                for (String namespace : delegateRegistries.getAllNamespaces()) {
View Full Code Here

        //
        // And finally, mark everything as happily compiled.
        //
        for (CompilingDef<?> cd : compiling) {
            if (cd.def == null) {
                throw new AuraRuntimeException("Missing def for " + cd.descriptor + " during validation of "
                        + currentCC.topLevel);
            }
            if (cd.def != null) {
                defs.put(cd.descriptor, cd.def);
                if (cd.built) {
View Full Code Here

            throws QuickFixException {
        D def;
        boolean nested = (cc == currentCC);

        if (!nested && currentCC != null) {
            throw new AuraRuntimeException("Unexpected nesting of contexts. This is not allowed");
        }
        currentCC = cc;
        if (!nested) {
            currentCC.loggingService.startTimer(LoggingService.TIMER_DEFINITION_CREATION);
        }
View Full Code Here

        Optional<Object> value;
        if (reference.size() == 1) {
            value = getGlobalVar(reference);
        } else {
            throw new AuraRuntimeException(String.format(MALFORMED, reference));
        }

        // check for cross references (expressions)
        if (value.get() instanceof PropertyReference) {
            return getValue((PropertyReference) value.get());
View Full Code Here

            throws QuickFixException {
        // See localDependencies commentcurrentCC
        String key = makeLocalKey(descriptor);

        if (currentCC != null) {
            throw new AuraRuntimeException("Ugh, nested compileDE/buildDE on " + currentCC.topLevel
                    + " trying to build " + descriptor);
        }

        try {
            List<ClientLibraryDef> clientLibs = Lists.newArrayList();
View Full Code Here

TOP

Related Classes of org.auraframework.throwable.AuraRuntimeException

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.