Package org.impalaframework.exception

Examples of org.impalaframework.exception.ExecutionException


    try {
      this.rootFile = file;
      this.rootCanonicalPath = file.getCanonicalPath();
    }
    catch (IOException e) {
      throw new ExecutionException("Unable to obtain canonical path for file " + file);
    }
  }
View Full Code Here


                makeAccessible(declaredField);
                Object value = declaredField.get(object);
                return ObjectUtils.cast(value, clazz);
            }
            else {
                throw new ExecutionException(object.getClass().getName() + " does not appear to contain field '" + fieldName + "'");
            }
        }
        catch (ExecutionException e) {
            throw e;
        }
View Full Code Here

        }
        return null;
    }

    private static ExecutionException rethrowMethodException(Exception e, String methodName, Object... args) {
        return new ExecutionException("Unable to execute method: " + methodName + ", args: " + Arrays.toString(args), e);
    }
View Full Code Here

    private static ExecutionException rethrowMethodException(Exception e, String methodName, Object... args) {
        return new ExecutionException("Unable to execute method: " + methodName + ", args: " + Arrays.toString(args), e);
    }

    private static ExecutionException rethrowConstructorException(Exception e, Constructor<?> constructor, Object... args) {
        return new ExecutionException("Unable to instantiate object using constructor '" + constructor + "', args: " + Arrays.toString(args), e);
    }
View Full Code Here

    try {
      Properties props = (Properties) factoryBean.getObject();
      properties = props;
    } catch (IOException e) {
      if (properties != null) {
        throw new ExecutionException("Unable to load properties from " + factoryBean, e);
      }
    }
  }
View Full Code Here

            servletContext.removeAttribute(name);
            throw e;
        }
        catch (Throwable e) {
            servletContext.removeAttribute(name);
            throw new ExecutionException(e.getMessage(), e);
        }
    }
View Full Code Here

      final Class<?> clazz = cl.parseClass(args);
      final GroovyObject newInstance = (GroovyObject) clazz.newInstance();
      return newInstance;
    }
    catch (Exception e) {
      throw new ExecutionException(e.getMessage(), e);
    }
  }
View Full Code Here

        try {
            Properties props = (Properties) factoryBean.getObject();
            properties = props;
        } catch (IOException e) {
            if (properties != null) {
                throw new ExecutionException("Unable to load properties from " + factoryBean, e);
            }
        }
    }
View Full Code Here

                logger.error("Failed to handle loading of application module: " + moduleName, e);
               
                if (e instanceof RuntimeException) {
                    throw (RuntimeException)e;
                } else {
                    throw new ExecutionException(e.getMessage(), e);
                }
            }

        }
        else {
View Full Code Here

               
                logger.error("Failed to handle unloading of application module " + moduleDefinition, e);
                if (e instanceof RuntimeException) {
                    throw (RuntimeException)e;
                } else {
                    throw new ExecutionException(e.getMessage(), e);
                }
            }
        }
        return success;
    }
View Full Code Here

TOP

Related Classes of org.impalaframework.exception.ExecutionException

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.