Package org.smartcomps.twister.engine.exception

Examples of org.smartcomps.twister.engine.exception.InstantiationException


        ActivityImpl instance = null;
        try {
            instance = (ActivityImpl) Class.forName(activityClassName).newInstance();
        } catch (java.lang.InstantiationException e) {
            throw new InstantiationException("Could not instantiate an activity implementation " + activityClassName + " for interface " + activityInterface, e);
        } catch (IllegalAccessException e) {
            throw new InstantiationException("Could not instantiate an activity implementation " + activityClassName + " for interface " + activityInterface, e);
        } catch (ClassNotFoundException e) {
            throw new InstantiationException("The implementation class " + activityClassName + " for the interface " + activityInterface + " could not be found", e);
        } catch (ClassCastException e) {
            throw new InstantiationException("The instance returned from the interface " + activityInterface + " is not an Activity implementation : " + activityClassName, e);
        }
        return instance;
    }
View Full Code Here

TOP

Related Classes of org.smartcomps.twister.engine.exception.InstantiationException

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.