Package org.auraframework.throwable

Examples of org.auraframework.throwable.AuraError


        try {
            Component c = Aura.getInstanceService().getInstance("aura:template", ComponentDef.class, attribs);
            Aura.getRenderingService().render(c, out);
        } catch (QuickFixException e) {
            throw new AuraError(e);
        }
    }
View Full Code Here


        return getParentDescriptor().getDef().getSubDefinition(this);
    }

    @Override
    public boolean exists() {
        throw new AuraError("cannot check existence of a subdef as it requires compiling the parent def");
    }
View Full Code Here

            DefDescriptor<ComponentDef> tmplDesc = definitionService.getDefDescriptor("auradev:saveStyle",
                    ComponentDef.class);
            Component tmpl = instanceService.getInstance(tmplDesc, attributes);
            Aura.getRenderingService().render(tmpl, out);
        } catch (QuickFixException x) {
            throw new AuraError(x);
        } catch (IOException x) {
            throw new AuraRuntimeException(x);
        } finally {
            try {
                out.close();
View Full Code Here

        try {
            return new InputStreamReader(new FileInputStream(file), "UTF8");
        } catch (FileNotFoundException e) {
            throw new AuraRuntimeException(e);
        } catch (UnsupportedEncodingException uee) {
            throw new AuraError(uee);
        }
    }
View Full Code Here

        private final Set<String> prefixNamespaces = Sets.newHashSet();

        private void put(String namespace, DefRegistry<?> registry) {
            DefRegistry<?> r = registries.put(namespace.toLowerCase(), registry);
            if (r != null) {
                throw new AuraError(String.format(
                        "DefType/Prefix/Namespace combination %s claimed by 2 DefRegistries : %s and %s", namespace, r
                                .getClass().getName(), registry.getClass().getName()));
            }
            if ("*".equals(namespace)) {
                this.catchAllRegistry = registry;
View Full Code Here

     * AuraExecutionException, while errors and quickfix exceptions are passed through.
     */
    public void testExceptionThrownByComponentRendererHandled() throws Exception {
        JavaRendererDef def = createRenderer("java://org.auraframework.impl.renderer.sampleJavaRenderers.TestSimpleRenderer");
        IOException ioe = new IOException();
        AuraError err = new AuraError("expected");
        RuntimeException re = new RuntimeException("expected");

        try {
            def.render(null, new AppendableThrower(ioe));
            fail("no exception on a throwing appendable");
View Full Code Here

            DefinitionService defService = Aura.getDefinitionService();
            DefDescriptor<ComponentDef> tmplDesc = defService.getDefDescriptor("auradev:saveTheme", ComponentDef.class);
            Component tmpl = Aura.getInstanceService().getInstance(tmplDesc, attributes);
            Aura.getRenderingService().render(tmpl, out);
        } catch (QuickFixException x) {
            throw new AuraError(x);
        }
    }
View Full Code Here

            DefDescriptor<ComponentDef> tmplDesc = definitionService.getDefDescriptor("auradev:saveComponent",
                    ComponentDef.class);
            Component tmpl = instanceService.getInstance(tmplDesc, attributes);
            Aura.getRenderingService().render(tmpl, out);
        } catch (QuickFixException x) {
            throw new AuraError(x);
        }
    }
View Full Code Here

            DefDescriptor<ComponentDef> tmplDesc = definitionService.getDefDescriptor("auradev:saveApplication",
                    ComponentDef.class);
            Component tmpl = instanceService.getInstance(tmplDesc, attributes);
            Aura.getRenderingService().render(tmpl, out);
        } catch (QuickFixException x) {
            throw new AuraError(x);
        }
    }
View Full Code Here

        } catch (QuickFixException death) {
            //
            // DOH! something is seriously wrong, just die!
            // This should _never_ happen, but if you muck up basic aura stuff, it might.
            //
            throw new AuraError(death);
        }
    }
View Full Code Here

TOP

Related Classes of org.auraframework.throwable.AuraError

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.