Examples of IntakeException


Examples of org.apache.fulcrum.intake.IntakeException

    public Group get(String groupName, String key)
            throws IntakeException
    {
        if (groupName == null)
        {
            throw new IntakeException("IntakeServiceFacade.get: groupName == null");
        }
        if (key == null)
        {
            throw new IntakeException("IntakeServiceFacade.get: key == null");
        }

        PullHelper ph = get(groupName);
        return (ph == null) ? null : ph.setKey(key);
    }
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

    public Group get(String groupName, String key, boolean create)
            throws IntakeException
    {
        if (groupName == null)
        {
            throw new IntakeException("IntakeServiceFacade.get: groupName == null");
        }
        if (key == null)
        {
            throw new IntakeException("IntakeServiceFacade.get: key == null");
        }

        PullHelper ph = get(groupName);
        return (ph == null) ? null : ph.setKey(key, create);
    }
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

        {
            return (Field) fields.get(fieldName);
        }
        else
        {
            throw new IntakeException("Intake Field name: " + fieldName +
                    " not found in Group " + name);
        }
    }
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

        {
            super.parser = (ParameterParser) vp;
        }
        catch (ClassCastException e)
        {
            throw new IntakeException(
                    "FileItemFields can only be used with ParameterParser");
        }

        validFlag = true;
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

    public XmlGroup getGroup(String groupName)
            throws IntakeException
    {
        if (groupName == null)
        {
            throw new IntakeException(
                    "Intake AppData.getGroup(groupName) is null");
        }

        String groupPrefix = getGroupPrefix();
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

                        return (Field)constructor.newInstance(new Object[] { f, g });
                    }
                    catch (ClassNotFoundException e)
                    {
                        throw new IntakeException(
                                "Could not load Field class("
                                + fieldClass + ")", e);
                    }
                    catch (Exception e)
                    {
                        throw new IntakeException(
                                "Could not create new instance of Field("
                                + fieldClass + ")", e);
                    }
                }
                else
                {
                    throw new IntakeException(
                            "Custom field types must define a fieldClass");
                }
            }
        }
        );
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

        String type = xmlField.getType();

        fieldCtor = (FieldCtor) fieldCtors.get(type);
        if (fieldCtor == null)
        {
            throw new IntakeException("An Unsupported type has been specified for " +
                    xmlField.getName() + " in group " + xmlGroup.getIntakeGroupName() + " type = " + type);
        }
        else
        {
            field = fieldCtor.getInstance(xmlField, xmlGroup);
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

                                    value,
                                    refField.getValue());
                        }
                        catch (ClassCastException e)
                        {
                            throw new IntakeException("Type mismatch comparing " +
                                    value + " with " + refField.getValue(), e);
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

                validator = (Validator)
                        Class.forName(validatorClassName).newInstance();
            }
            catch (InstantiationException e)
            {
                throw new IntakeException(
                        "Could not create new instance of Validator("
                        + validatorClassName + ")", e);
            }
            catch (IllegalAccessException e)
            {
                throw new IntakeException(
                        "Could not create new instance of Validator("
                        + validatorClassName + ")", e);
            }
            catch (ClassNotFoundException e)
            {
                throw new IntakeException(
                        "Could not load Validator class("
                        + validatorClassName + ")", e);
            }
            // this should always be true for now
            // (until bean property initialization is implemented)
View Full Code Here

Examples of org.apache.fulcrum.intake.IntakeException

            log.debug(name + ".setProperty(" + obj.getClass().getName() + ")");
        }

        if (!isValid())
        {
            throw new IntakeException(
                    "Attempted to assign an invalid input.");
        }
        if (isSet() && null != getTestValue())
        {
            valArray[0] = getTestValue();
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.