Package org.apache.tapestry.ioc.internal.util

Examples of org.apache.tapestry.ioc.internal.util.TapestryException


            ComponentResources component, String expression, Location location)
    {
        Object fieldAsObject = component.getComponent();

        if (!Field.class.isInstance(fieldAsObject))
            throw new TapestryException(BindingsMessages.validateBindingForFieldsOnly(component),
                    location, null);

        Field field = (Field) fieldAsObject;

        // The expression is a validator specification, such as "required,minLength=5".
View Full Code Here


        {
            return _conduit.get(_root);
        }
        catch (Exception ex)
        {
            throw new TapestryException(ex.getMessage(), getLocation(), ex);
        }
    }
View Full Code Here

        {
            _conduit.set(_root, value);
        }
        catch (Exception ex)
        {
            throw new TapestryException(ex.getMessage(), getLocation(), ex);
        }
    }
View Full Code Here

        String childId = child.getId();

        ComponentPageElement existing = _children.get(childId);
        if (existing != null)
            throw new TapestryException(StructureMessages.duplicateChildComponent(this, childId),
                    child, null);

        _children.put(childId, child);
    }
View Full Code Here

            InternalComponentResources mixinResources = InternalUtils.get(
                    _mixinsByShortName,
                    mixinName);

            if (mixinResources == null)
                throw new TapestryException(StructureMessages.missingMixinForParameter(
                        _completeId,
                        mixinName,
                        parameterName), binding, null);

            String simpleName = parameterName.substring(dotx + 1);
View Full Code Here

    {
        ComponentPageElement embeddedElement = InternalUtils.get(_children, embeddedId
                .toLowerCase());

        if (embeddedElement == null)
            throw new TapestryException(StructureMessages.noSuchComponent(this, embeddedId), this,
                    null);

        return embeddedElement;
    }
View Full Code Here

                }
            }
        }

        if (result == null)
            throw new TapestryException(
                    StructureMessages.unknownMixin(_completeId, mixinClassName), getLocation(),
                    null);

        return result;
    }
View Full Code Here

        for (String name : InternalUtils.sortedKeys(_mixinsByShortName))
            addUnboundParameterNames(name, unbound, _mixinsByShortName.get(name));

        if (unbound.isEmpty()) return;

        throw new TapestryException(StructureMessages.missingParameters(unbound, this), this, null);
    }
View Full Code Here

    public void addBlock(String blockId, Block block)
    {
        if (_blocks == null) _blocks = newCaseInsensitiveMap();

        if (_blocks.containsKey(blockId))
            throw new TapestryException(StructureMessages.duplicateBlock(this, blockId), block,
                    null);

        _blocks.put(blockId, block);
    }
View Full Code Here

            InternalComponentResources mixinResources = InternalUtils.get(
                    _mixinsByShortName,
                    mixinName);

            if (mixinResources == null)
                throw new TapestryException(StructureMessages.missingMixinForParameter(
                        _completeId,
                        mixinName,
                        parameterName), null, null);

            String simpleName = parameterName.substring(dotx + 1);
View Full Code Here

TOP

Related Classes of org.apache.tapestry.ioc.internal.util.TapestryException

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.