Examples of YogaRuntimeException


Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

    }

    @Override
    public Object getValue( T instance )
    {
        throw new YogaRuntimeException( "Named Properties don't read properties" );
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

    }

    @Override
    public Method getReadMethod()
    {
        throw new YogaRuntimeException( "Named Properties don't have a read method" );
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

    public Object getValue( T instance )
    {
        try {
            return getEntityConfigurationValue( method, entityConfiguration, instance );
        } catch (Exception e) {
            throw new YogaRuntimeException( "Could not invoke " + method + " on " + entityConfiguration.getClass().getName(), e );
        }
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

            case 1:
                return method.invoke(entityConfiguration, instance);

            default:
                throw new YogaRuntimeException(
                        String.format(
                                "An @ExtraField method can only have 0 or 1 parameters.  Method %s has %d",
                                method.toString(), method.getParameterTypes().length ) );
        }
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

            return readMethod.invoke( instance );
//          return PropertyUtils.getProperty( instance, property.getName() );
        }
        catch (Exception e)
        {
            throw new YogaRuntimeException("Could not read " + property.getName() + " from " + instance, e);
        }
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

    public void setMaxCount(int maxCount)
    {
        if (maxCount <= 0)
        {
            throw new YogaRuntimeException(
                    "CountLimitRenderingListener expects a positive maxCount" );
        }
        this.maxCount = maxCount;
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

    {
        try {
            _instanceClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
        }
        catch (ClassCastException e) {
            throw new YogaRuntimeException("Unable to initialize class " + getClass().getName() + " because " +
                    "entity class could not be determined.  Either specify it in the generic type when extending " +
                    "YogaEntityConfiguration, or explicitly override getEntityClass() with the correct value.");
        }
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

    public void addValue( Object instance )
    {
        if ( childName != null )
            element.addElement( childName ).setText( instance.toString() );
        else
            throw new YogaRuntimeException( "childName was never set" );
    }
View Full Code Here

Examples of org.skyscreamer.yoga.exceptions.YogaRuntimeException

        {
            addProperty( defaultName, instance );
        }
        else
        {
            throw new YogaRuntimeException( "You must call createSimple first" );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.