Package com.volantis.synergetics

Examples of com.volantis.synergetics.UndeclaredThrowableException


        }

        try {
            return this.constructor.newInstance(arguments);
        } catch (Exception e) {
            throw new UndeclaredThrowableException(e,
                                                   EXCEPTION_LOCALIZER.format(
                                                       "failed-to-create-class",
                                                       constructor.getName()));
        }
View Full Code Here


            exception = e;
        }

        this.defaultFactoryInstance = factoryInstance;
        if (exception != null) {
            initialisationException = new UndeclaredThrowableException(
                exception,
                EXCEPTION_LOCALIZER.format("failed-to-load-class",
                                           factoryClassName));
        } else {
            initialisationException = null;
View Full Code Here

      Method reader = descriptor.getReadMethod ();
      return reader.invoke (bean, null);
    }
    catch (IllegalAccessException iae) {
      logger.error ("unexpected-illegal-access-exception", iae);
      throw new UndeclaredThrowableException (iae);
    }
    catch (IllegalArgumentException iae) {
      logger.error ("unexpected-illegal-argument-exception", iae);
      throw new UndeclaredThrowableException (iae);
    }
    catch (InvocationTargetException ite) {
      Throwable t = ite.getTargetException ();
      logger.error ("unexpected-invocation-target-exception", t);
      if (t instanceof Error) {
        throw (Error) t;
      } else if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new UndeclaredThrowableException (t);
      }
    }
  }
View Full Code Here

      if (t instanceof Error) {
        throw (Error) t;
      } else if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new UndeclaredThrowableException (t);
      }
    }
  }
View Full Code Here

    try {
      return constructor.newInstance (args);
    }
    catch (InstantiationException ie) {
      logger.error ("unexpected-instantiation-exception", ie);
      throw new UndeclaredThrowableException (ie);
    }
    catch (IllegalAccessException iae) {
      logger.error ("unexpected-illegal-access-exception", iae);
      throw new UndeclaredThrowableException (iae);
    }
    catch (InvocationTargetException ite) {
      Throwable t = ite.getTargetException ();
      logger.error ("unexpected-invocation-target-exception", t);
      if (t instanceof Error) {
        throw (Error) t;
      } else if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new UndeclaredThrowableException (t);
      }
    }
    catch (ExceptionInInitializerError eiie) {
      Throwable t = eiie.getException ();
      if (t == null) {
        logger.error ("unexpected-exception", eiie);
        throw new RuntimeException ("Internal error");
      } else if (t instanceof Error) {
        throw (Error) t;
      } else if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new UndeclaredThrowableException (t);
      }
    }
  }
View Full Code Here

    try {
      return beanClass.newInstance ();
    }
    catch (InstantiationException ie) {
      logger.error ("unexpected-instantiation-exception", ie);
      throw new UndeclaredThrowableException (ie);
    }
    catch (IllegalAccessException iae) {
      logger.error ("unexpected-illegal-access-exception", iae);
      throw new UndeclaredThrowableException (iae);
    }
    catch (ExceptionInInitializerError eiie) {
      Throwable t = eiie.getException ();
      if (t == null) {
        logger.error ("unexpected-exception", eiie);
        throw new RuntimeException ("Internal error");
      } else if (t instanceof Error) {
        throw (Error) t;
      } else if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new UndeclaredThrowableException (t);
      }
    }
  }
View Full Code Here

    public Object clone() {
        URLIntrospector copy = null;
        try {
            copy = (URLIntrospector) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new UndeclaredThrowableException(e);
        }
        // copy internal state of this to copy
        copy.protocol = this.protocol;
        copy.reference = this.reference;
        copy.host = this.host;
View Full Code Here

     */
    private String decode(String string) {
        try {
            return URLDecoder.decode(string);
        } catch (Exception e) {
            throw new UndeclaredThrowableException(e);
        }
    }
View Full Code Here

        try {
            if (file == null) {
                createFile();
            }
        } catch (IOException e) {
            throw new UndeclaredThrowableException(e);
        }

        return new Path(file.getAbsolutePath());
    }
View Full Code Here

            }

            is = new FileInputStream(file);

        } catch (IOException e) {
            throw new UndeclaredThrowableException(e);
        }

        return is;
    }
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.UndeclaredThrowableException

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.