Package org.auraframework.throwable

Examples of org.auraframework.throwable.AuraRuntimeException


            AuraContext context = Aura.getContextService().getCurrentContext();
            format = context.getFormat().name();   
        }
        FormatAdapter<T> ret = AuraImpl.getFormatAdapter(format, type);
        if (ret == null) {
            throw new AuraRuntimeException(String.format("No FormatAdapter found for '%s' in '%s' Format",
                    type.getName(), format));
        }
        return ret;
    }
View Full Code Here


    protected Access getAccess() {
        if (accessMethod != null) {
            try {
                return (Access) accessMethod.invoke(null);
            } catch (Exception e) {
                throw new AuraRuntimeException("Exception executing access-checking method " +
                        accessMethod.getClass().getName() + "." + accessMethod.getName(), e);
            }
        } else {
            return access;
        }
View Full Code Here

        }
        String typeDescriptor = type.contains(":") ? type : typeMap.get(type);
        if (typeDescriptor != null) {
            return DefDescriptorImpl.getInstance(typeDescriptor, ComponentDef.class);
        }
        throw new AuraRuntimeException("Unknown type attribute specified for ui:listViewColumn '" + type
                + "'. Remove the type attribute, or use one of the following values: '"
                + Joiner.on("', '").join(typeMap.keySet())
                + "', or any namespaced component descriptor, e.g. ns:CustomColumn.");
    }
View Full Code Here

        }
        String typeDescriptor = type.contains(":") ? type : typeMap.get(type);
        if (typeDescriptor != null) {
            return DefDescriptorImpl.getInstance(typeDescriptor, ComponentDef.class);
        }
        throw new AuraRuntimeException("Unknown type attribute specified for ui:pager '" + type
                + "'. Remove the type attribute or use one of the following values: '"
                + Joiner.on("', '").join(typeMap.keySet())
                + "', or any namespaced component descriptor, e.g. ns:CustomPager.");
    }
View Full Code Here

        try {
            LoggingService loggingService = Aura.getLoggingService();
            loggingService.incrementNum("JavaCallCount");
            return getter.invoke(obj);
        } catch (IllegalArgumentException e) {
            throw new AuraRuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new AuraRuntimeException(e);
        } catch (InvocationTargetException e) {
            throw new AuraExecutionException(e.getCause().getMessage(), this.location, e.getCause());
        }
    }
View Full Code Here

                writer.write(newContents.toString());
            } finally {
                writer.close();
            }
        } catch (IOException e) {
            throw new AuraRuntimeException(e);
        }
        return true;
    }
View Full Code Here

        try {
            StringWriter sw = new StringWriter();
            IOUtil.copyStream(getHashingReader(), sw);
            return sw.toString();
        } catch (IOException e) {
            throw new AuraRuntimeException(e);
        }
    }
View Full Code Here

    @Override
    public Reader getReader() {
        InputStream is = resourceLoader.getResourceAsStream(getSystemId());
        if (is == null) {
            throw new AuraRuntimeException("Resource not found: " + getSystemId());
        }
        return new InputStreamReader(is);
    }
View Full Code Here

        if (descStr != null) {
            return Aura.getDefinitionService().getDefinition(descStr, defClass);
        }
        D ret = getDefaultBaseDefinition();
        if (ret == null) {
            throw new AuraRuntimeException("Descriptor not specified, and default definition not found for " +
                getTargetDescriptor() /*, Location */);
        }
        return ret;
    }
View Full Code Here

        public ThrowsExceptionClass(String className) {
            try {
                this.toThrow = Class.forName(className).asSubclass(
                        Throwable.class);
            } catch (ClassNotFoundException e) {
                throw new AuraRuntimeException(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.