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

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


            // will mimic the actual element, w/ body and informal parameters.

            if (elementName != null)
                embeddedType = "Any";
            else
                throw new TapestryException(ServicesMessages.noTypeForEmbeddedComponent(
                        embeddedId,
                        _loadingComponentModel.getComponentClassName()), token, null);
        }

        ComponentPageElement newComponent = _pageElementFactory.newComponentElement(
View Full Code Here


            // will mimic the actual element, w/ body and informal parameters.

            if (elementName != null)
                embeddedType = "Any";
            else
                throw new TapestryException(ServicesMessages.noTypeForEmbeddedComponent(
                        embeddedId,
                        _loadingComponentModel.getComponentClassName()), token, null);
        }

        ComponentPageElement newComponent = _pageElementFactory.newComponentElement(
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

            addUnboundParameterNames(name, unbound, _mixinsByShortName.get(name));

        if (unbound.isEmpty())
            return;

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

    {
        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

                add(command);

                return false; // do not abort!
            }

            throw new TapestryException(StructureMessages.wrongEventResultType(
                    methodDescription,
                    Boolean.class), component, null);
        }
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.