Package com.sworddance.util

Examples of com.sworddance.util.ApplicationGeneralException


                return null;
            } else {
                throw new ApplicationTimeoutException(e);
            }
        } else {
            throw new ApplicationGeneralException(e); //            throw rethrow(e);
        }
    }
View Full Code Here


                    } else if (current.isExclusiveLock()) {
                        dependencies.add(current.getTask());
                    }
                }
                if (current != lock) {
                    throw new ApplicationGeneralException(task + ": Did not find lock "
                            + lock.getLockStr() + " on list for resource="
                            + lock.getResourceName());
                }
            }
        }
View Full Code Here

     * @return value returned by the set operation ( usually void )
     */
    @SuppressWarnings("unchecked")
    public <T> T write(Object target, Object value) {
        if (setter == null) {
            throw new ApplicationGeneralException("No set"+this.propertyName+"()");
        } else {

            try {
                return (T) setter.invoke(target, new Object[] { value });
            } catch (IllegalArgumentException e) {
View Full Code Here

            if (convertedValue != null) {
                return convertedValue;
            }

            throw new ApplicationGeneralException("noPropertyEditor("+propertyName+"+)"+target.getClass());
        }

        try {
            e.setAsText(value);

            return e.getValue();
        } catch (Exception ex) {
            throw new ApplicationGeneralException("unableToConvert("+value+", "+getReturnType()+", "+propertyName+", "+target, ex);
        }
    }
View Full Code Here

     * @param target the object to read a property from
     * @return property's value
     */
    public Object read(Object target) {
        if (getter == null) {
            throw new ApplicationGeneralException("no get"+propertyName+"()");
        } else if ( target == null) {
            throw new ApplicationNullPointerException("target to read property "+propertyName+" from is null");
        } else {

            try {
View Full Code Here

TOP

Related Classes of com.sworddance.util.ApplicationGeneralException

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.