Package org.auraframework.throwable

Examples of org.auraframework.throwable.AuraRuntimeException


     * Build a DE 'in place' with no tree traversal.
     */
    private <D extends Definition> void buildDE(@NonNull DependencyEntry de, @NonNull DefDescriptor<?> descriptor)
            throws QuickFixException {
        if (currentCC != null) {
            throw new AuraRuntimeException("Ugh, nested compileDE/buildDE on " + currentCC.topLevel
                    + " trying to build " + descriptor);
        }
        currentCC = new CompileContext(descriptor);
        try {
            validateHelper(descriptor);
View Full Code Here


                } catch (QuickFixException qfe) {
                    // try to pick it up from the cache.
                    de = getDE(null, descriptor);
                    // this should never happen.
                    if (de == null) {
                        throw new AuraRuntimeException("unexpected null on QFE");
                    }
                }
            }
        } finally {
            rLock.unlock();
View Full Code Here

     */
    public static final Pattern SUBDEF_PATTERN = Pattern.compile("\\A((?:[\\w\\\\*]+://)?.*)/(\\w+)\\$(\\w+)\\z");

    protected SubDefDescriptorImpl(DefDescriptor<P> parentDescriptor, String subName, Class<T> defClass) {
        if (AuraTextUtil.isNullEmptyOrWhitespace(subName)) {
            throw new AuraRuntimeException("Sub definition name cannot be null");
        }
        LoggingService loggingService = Aura.getLoggingService();
        loggingService.startTimer(LoggingService.TIMER_DEF_DESCRIPTOR_CREATION);
        try {
            this.parentDescriptor = parentDescriptor;
View Full Code Here

            String name = matcher.group(3);
            DefDescriptor<Par> parentDescriptor = DefDescriptorImpl.getInstance(parentName, parClass);
            return getInstance(name, parentDescriptor, defClass);

        } else {
            throw new AuraRuntimeException(String.format("Invalid Descriptor Format: %s", qualifiedName));
        }
    }
View Full Code Here

    @Override
    public void popSystemContext() {
        MutableInteger count = systemDepth.get();

        if (count == null || count.value == 0) {
            throw new AuraRuntimeException("unmatched pop");
        }
        count.value -= 1;
    }
View Full Code Here

        currentContext.set(null);
        systemContext.set(null);

        MutableInteger count = systemDepth.get();
        if (count != null && count.value != 0) {
            throw new AuraRuntimeException("unmatched push");
        }
    }
View Full Code Here

            tmpRenderable = tmpRenderable.getSuper();
        }

        if (rendererDef == null) {
            throw new AuraRuntimeException(String.format("No local RendererDef found for %s", component));
        }

        rendererDef.render(renderable, out);
    }
View Full Code Here

        definitionService.subscribeToChangeNotification(listener);
        for (DefDescriptor<?> desc : cached) {
            definitionService.onSourceChanged(desc, SourceMonitorEvent.CHANGED, null);
        }
        if (!latch.await(CACHE_CLEARING_TIMEOUT_SECS, TimeUnit.SECONDS)) {
            throw new AuraRuntimeException(String.format(
                    "Timed out after %s seconds waiting for cached Aura definitions to clear: %s",
                    CACHE_CLEARING_TIMEOUT_SECS, defs));
        }
    }
View Full Code Here

        StringBuilder sb = new StringBuilder();
        try {
            Aura.getSerializationService().write(ctx, null, AuraContext.class, sb, "HTML");
        } catch (IOException e) {
            // This should never happen, stringbuilders don't throw IOException.
            throw new AuraRuntimeException(e);
        }
        return sb.toString();
    }
View Full Code Here

                if (!(t instanceof JsFunction)) {
                    if (t instanceof List) {
                        List<Object> functions = (List<Object>) t;
                        for (Object i : functions) {
                            if (!(i instanceof JsFunction)) {
                                throw new AuraRuntimeException(
                                        key + " 'test' must be a function or an array of functions");
                            }
                        }
                    } else {
                        throw new AuraRuntimeException(
                                key + " 'test' must be a function or an array of functions");
                    }
                }

                Map<String, Object> caseAttributes = (Map<String, Object>) value.get("attributes");
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.