Examples of PropertyException


Examples of javax.xml.bind.PropertyException

    /*
     * assert that the given object is a Boolean
     */
    private void checkBoolean( String name, Object value ) throws PropertyException {
        if(!(value instanceof Boolean))
            throw new PropertyException(
                Messages.format( Messages.MUST_BE_BOOLEAN, name ) );
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

    /*
     * assert that the given object is a String
     */
    private void checkString( String name, Object value ) throws PropertyException {
        if(!(value instanceof String))
            throw new PropertyException(
                Messages.format( Messages.MUST_BE_STRING, name ) );
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

     * providers may have support for properties on Validator, but the RI doesn't
     */
    public void setProperty( String name, Object value )
        throws PropertyException {
       
        throw new PropertyException(name, value);
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

     * providers may have support for properties on Validator, but the RI doesn't
     */
    public Object getProperty( String name )
        throws PropertyException {
           
        throw new PropertyException(name);
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

        if( name == null ) {
            throw new IllegalArgumentException(
                Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
        }

        throw new PropertyException(name, value);
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

        if( name == null ) {
            throw new IllegalArgumentException(
                Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
        }

        throw new PropertyException(name);
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.util.properties.PropertyException

            double[][] results = new double[matches.size()][2];
            int i = 0;
            for (String s : matches) {
                String[] a = s.split(";");
                if (2 != a.length) {
                    throw new PropertyException("location value '" + s + "' does not have the format long;lat");
                }
                results[i][0] = Double.valueOf(a[0]);
                results[i][1] = Double.valueOf(a[1]);
                i++;
            }
View Full Code Here

Examples of org.apache.cayenne.reflect.PropertyException

    @Override
    protected ValueHolder createCollectionValueHolder(Object object)
            throws PropertyException {
        if (!(object instanceof Persistent)) {

            throw new PropertyException(
                    "ValueHolders for non-persistent objects are not supported.",
                    this,
                    object);
        }
View Full Code Here

Examples of org.apache.cayenne.reflect.PropertyException

    public Object readProperty(Object object) throws PropertyException {
        try {
            return toDataObject(object).readProperty(getName());
        }
        catch (Throwable th) {
            throw new PropertyException(
                    "Error reading DataObject property: " + getName(),
                    this,
                    object,
                    th);
        }
View Full Code Here

Examples of org.apache.cayenne.reflect.PropertyException

            throws PropertyException {
        try {
            toDataObject(object).writeProperty(getName(), newValue);
        }
        catch (Throwable th) {
            throw new PropertyException(
                    "Error writing DataObject property: " + getName(),
                    this,
                    object,
                    th);
        }
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.