Package org.auraframework.throwable

Examples of org.auraframework.throwable.AuraRuntimeException


                } catch (Throwable t) {
                    // ignore exceptions on close.
                }
            }
        } catch (IOException x) {
            throw new AuraRuntimeException(x);
        }
        if (files == null) {
            _log.warn("Unused base: "+basePackage);
            return;
        }
View Full Code Here


            return null;
        }
        try {
            return clazz.cast(val);
        } catch (ClassCastException cce) {
            throw new AuraRuntimeException("attribute <" + name + "> is of the wrong type: expected "
                    + clazz.getName() + " but got " + val.getClass().getName());
        }
    }
View Full Code Here

                json.writeMapEntry("model", model);
            }

            json.writeMapEnd();
        } catch (QuickFixException e) {
            throw new AuraRuntimeException(e);
        } finally {
            context.setCurrentComponent(oldComponent);
        }
    }
View Full Code Here

    private static AuraRuntimeException makeException(String message, Throwable cause, ModelDef def) {
        if (def != null) {
            return new AuraExecutionException(message,def.getLocation(),cause);
        } else {
            return new AuraRuntimeException(message, cause);
        }
    }
View Full Code Here

                _log.error("Unable to read registries file", e);
            } finally {
                try {
                    ris.close();
                } catch (IOException e) {
                    throw new AuraRuntimeException(e);
                }
                if (ois != null) {
                    try {
                        ois.close();
                    } catch (IOException e) {
                        throw new AuraRuntimeException(e);
                    }
                }
            }
        }
        return null;
View Full Code Here

                }
                try {
                    canonical = components.getCanonicalPath();
                } catch (IOException ioe) {
                    // doh! ignore, not sure what we can do.
                    throw new AuraRuntimeException("unable to get canonical path", ioe);
                }
            }
        } else {
            Set<SourceLoader> loaders = location.getSourceLoaders();
            if (!loaders.isEmpty()) {
View Full Code Here

                attributes.put("auraInit", Json.serialize(auraInit));
            }
            Component template = instanceService.getInstance(templateDef.getDescriptor(), attributes);
            renderingService.render(template, out);
        } catch (QuickFixException e) {
            throw new AuraRuntimeException(e);
        }
    }
View Full Code Here

    protected ConfigAdapterImpl(String resourceCacheDir) {
        // can this initialization move to some sort of common initialization dealy?
        try {
            this.resourceLoader = new ResourceLoader(resourceCacheDir, true);
        } catch (MalformedURLException e) {
            throw new AuraRuntimeException(e);
        }

        // Framework JS
        JavascriptGroup tempGroup = null;
        try {
View Full Code Here

                    }
                }
                lastGenerationHadCompilationErrors = false;
            } catch (Exception x) {
                lastGenerationHadCompilationErrors = true;
                throw new AuraRuntimeException("Unable to regenerate aura javascript", x);

            }
        }
    }
View Full Code Here

            }

            return this.fwUid;

        } catch (IOException e) {
            throw new AuraRuntimeException("Can't read framework files", e);
        }
    }
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.