Package org.auraframework.throwable

Examples of org.auraframework.throwable.AuraExecutionException


        return ret;
    }

    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


                this.state = State.valueOf(action.get("state").toString());
                this.returnValue = action.get("returnValue");
                this.errors = (List<Object>) action.get("error");
               
            } catch (Exception e) {
                throw new AuraExecutionException(e, null);
            }
        }
View Full Code Here

        } 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

        return ret;
    }

    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

        if (t instanceof AuraHandledException) {
            this.errors.add(t);
        } else {
            Throwable ex = t;
            if (wrap) {
                ex = new AuraExecutionException(ex, new Location(controllerDescriptor.toString(), 0));
            }
            if (loggable) {
                ex = Aura.getExceptionAdapter().handleException(ex, this);
            }
            this.errors.add(ex);
View Full Code Here

    @Override
    public void run() throws AuraExecutionException {
      try {
        sharedCmp.getAttributes().set(componentAttributes);
      } catch (QuickFixException e) {
        throw new AuraExecutionException(e.getMessage(), e.getLocation());
      }
      super.run();
      String whatIsInResponse = (String) super.getReturnValue();
      int startPos = whatIsInResponse.lastIndexOf("shared_component");
      if(startPos >=0 ) {
View Full Code Here

TOP

Related Classes of org.auraframework.throwable.AuraExecutionException

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.