Examples of ModelloException


Examples of org.codehaus.modello.ModelloException

            emsg.append( ERROR_LINE );

            // Determine possible exception.
            if ( hasError || modelMetadata.getReservedWordStrictness().equals( JPoxModelMetadata.WARNING ) )
            {
                throw new ModelloException( emsg.toString() );
            }

            // No exception. use it. But log it.
            getLogger().warn( emsg.toString() );
        }
View Full Code Here

Examples of org.codehaus.modello.ModelloException

    {
        if ( !"off".equals( valueStrategy ) )
        {
            if ( !VALUE_STRATEGY_LIST.contains( valueStrategy ) )
            {
                throw new ModelloException( "The JDO mapping generator does not support the specified "
                                + "value-strategy '" + valueStrategy + "'. " + "Supported types: "
                                + VALUE_STRATEGY_LIST );
            }
            writer.addAttribute( "value-strategy", valueStrategy );
        }
View Full Code Here

Examples of org.codehaus.modello.ModelloException

    private void assertSupportedIdentityPrimitive( ModelField modelField ) throws ModelloException
    {
        if ( !PRIMITIVE_IDENTITY_MAP.containsKey( modelField.getType() ) )
        {
            throw new ModelloException( "The JDO mapping generator does not support the specified " + "field type '"
                            + modelField.getType() + "'. " + "Supported types: " + PRIMITIVE_IDENTITY_MAP.keySet() );
        }
    }
View Full Code Here

Examples of org.codehaus.modello.ModelloException

                return value;
            }
        }

        String emsg = "Unknown " + key + " value: '" + value + "'.  " + "(Allowed values: " + legalValues + ")";
        throw new ModelloException( emsg );
    }
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.