Package jfun.yan

Examples of jfun.yan.YanException


   */
  public static YanException wrapInstantiationException(Throwable e){
    if(e instanceof Error)
      throw (Error)e;
    if(e instanceof YanException){
      final YanException ye = (YanException)e;
      return ye;
    }
    if(e instanceof InvocationTargetException){
      final Throwable cause =
        ((InvocationTargetException)e).getTargetException();
      if(cause != e){
        return wrapInstantiationException(cause);
      }
    }
    final YanException ye = new ComponentInstantiationException(e);
    return ye;
  }
View Full Code Here


      throw ex;
    }
    catch(Exception e){
      servletContext.log("Container initialization failed", e);
      servletContext.setAttribute(CONTAINER_ROOT, e);
      throw new YanException(e);
    }
    catch (Error err) {
      servletContext.log("Container initialization error", err);
      servletContext.setAttribute(CONTAINER_ROOT, err);
      throw err;
View Full Code Here

TOP

Related Classes of jfun.yan.YanException

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.