All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frameworkset.spi.assemble.BeanInstanceException Maven / Gradle / Ivy

Go to download

bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com

There is a newer version: 6.2.7
Show newest version
package com.frameworkset.spi.assemble;

import java.lang.reflect.InvocationTargetException;


/**
 * 
 * 

Title: BeanInstanceException.java

*

Description:

*

bboss workgroup

*

Copyright (c) 2007

* @Date 2009-9-17 下午04:04:28 * @author biaoping.yin * @version 1.0 */ public class BeanInstanceException extends RuntimeException { public BeanInstanceException() { super(); // TODO Auto-generated constructor stub } public BeanInstanceException(String message, Throwable cause) { super(message, handleThrowable(cause) ); // TODO Auto-generated constructor stub } public static Throwable handleThrowable(Throwable retval) { if(retval == null) return null; if(retval instanceof java.lang.reflect.InvocationTargetException) { Throwable ret = ((java.lang.reflect.InvocationTargetException)retval).getTargetException(); if(ret == null) return null; if(ret instanceof InvocationTargetException) { return handleThrowable(ret); } return ret; } return (Throwable)retval; } public BeanInstanceException(String message) { super(message); // TODO Auto-generated constructor stub } public BeanInstanceException(Throwable cause) { super(handleThrowable(cause)); // TODO Auto-generated constructor stub } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy