Package org.auraframework.throwable

Examples of org.auraframework.throwable.AuraUnhandledException


            StringWriter sw = new StringWriter();
                PrintWriter p = new PrintWriter(sw);
                th.printStackTrace(p);               
                message = message + "\n\n" + sw.toString();
          }
          mapped = new AuraUnhandledException(message);
        }
        if (error) {
            logging = log.isErrorEnabled();
        } else {
            logging = log.isInfoEnabled();
View Full Code Here


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

            json.writeMapEnd();
        } catch (QuickFixException e) {
            throw new AuraUnhandledException("unhandled exception", e);
        }
    }
View Full Code Here

            json.writeMapEntry("eventDef", eventDef);
            json.writeMapEntry("attributeName", attName);
            json.writeMapEntry("isGlobal", isGlobal);
            json.writeMapEnd();
        } catch (QuickFixException e) {
            throw new AuraUnhandledException("unhandled exception", e);
        }
    }
View Full Code Here

                param = valueDef.getType().valueOf(param);
            } catch (QuickFixException qfe) {
                //
                // This means that we have a broken definition.
                //
                addException(new AuraUnhandledException("Invalid parameter " + valueDef, qfe), State.ERROR, true,
                        false);
                return null;
            } catch (IllegalArgumentException iae) {
                addException(new AuraUnhandledException("Invalid value for " + valueDef, iae), State.ERROR, false,
                        false);
                return null;
            } catch (AuraHandledException lhe) {
                addException(lhe, State.ERROR, false, false);
                return null;
            } catch (Exception e) {
                addException(new AuraUnhandledException("Error on parameter " + valueDef, e), State.ERROR, false,
                        false);
                return null;
            }
            args[i++] = param;
        }
View Full Code Here

                serializeFields(json);
                json.writeMapEnd();
            }
        } catch (QuickFixException e) {
            throw new AuraUnhandledException("unhandled exception", e);
        }
    }
View Full Code Here

        Builder builder = new Builder();
        try {
            builder.setActionMap(JavaControllerDefFactory.createActions(controller, controllerDesc, false));
        } catch (QuickFixException qfe) {
            throw new AuraUnhandledException("Broken Controller: " + qualifiedName, qfe);
        }
        builder.setControllerClass(controller);
        builder.setLocation(qualifiedName, -1);
        builder.setDescriptor(controllerDesc);
View Full Code Here

            }
            throw e;
        }

        if (hasMessages()) {
            throw new StyleParserException(concatMessages(true), null, new AuraUnhandledException(concatMessages(false)));
        }
    }
View Full Code Here

        } catch (Exception e) {
            if (handler != null) {
                if (e instanceof AuraExceptionInfo) {
                    handler.setParseError(e);
                } else {
                    handler.setParseError(new AuraUnhandledException(e.getLocalizedMessage(),
                        getLocation(xmlReader, source), e));
                }
                try {
                    ret = (D)handler.getErrorElement();
                } catch (Throwable t) {
                    // rethrow our original error, what else can we do?
                    throw new AuraUnhandledException(e.getLocalizedMessage(), getLocation(xmlReader, source), e);
                }
            } else {
                throw new AuraUnhandledException(e.getLocalizedMessage(), getLocation(xmlReader, source), e);
            }
        } finally {
            try {
                if (reader != null) {
                    reader.close();
View Full Code Here

                json.writeMapEntry("superDef", extendsDescriptor.getDef());
            }
            json.writeMapEntry("attributes", getAttributeDefs());
            json.writeMapEnd();
        } catch (QuickFixException e) {
            throw new AuraUnhandledException("unhandled exception", e);
        }
    }
View Full Code Here

            zuper = getSuperDef();
            if (zuper != null) {
                return zuper.isInstanceOf(other);
            }
        } catch (QuickFixException e) {
            throw new AuraUnhandledException("Unable to find super-class", e);
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.auraframework.throwable.AuraUnhandledException

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.