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

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


        {
            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

            return new PropBinding(target, conduit, toString, location);
        }
        catch (Throwable ex)
        {
            throw new TapestryException(ex.getMessage(), location, ex);
        }
    }
View Full Code Here

        }
        catch (RuntimeException ex)
        {
            String message = _messages.format("block-error", _propertyModel.getPropertyName(), dataType, _object, ex);

            throw new TapestryException(message, _resources.getLocation(), ex);
        }

    }
View Full Code Here

        {
            return type.newInstance();
        }
        catch (Exception ex)
        {
            throw new TapestryException(
                    InternalMessages.failureInstantiatingObject(type, _resources.getCompleteId(), ex),
                    _resources.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

        if (dotx > 0)
        {
            String mixinName = parameterName.substring(0, dotx);
            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);

            mixinResources.bindParameter(simpleName, binding);
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

                    break;
                }
            }
        }

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

        return result;
    }
View Full Code Here

            while (i.hasNext()) callback.run(i.next());
        }
        catch (RuntimeException ex)
        {
            throw new TapestryException(ex.getMessage(), getLocation(), ex);
        }
    }
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.