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


            embeddedType = modelType;
            embeddedComponentClassName = embeddedModel.getComponentClassName();
        }

        if (isBlank(embeddedType) && isBlank(embeddedComponentClassName)) throw new TapestryException(
                ServicesMessages.noTypeForEmbeddedComponent(embeddedId, _loadingComponentModel.getComponentClassName()),
                token, null);

        final ComponentPageElement newComponent = _pageElementFactory.newComponentElement(_page, _loadingElement,
                                                                                          embeddedId, embeddedType,
View Full Code Here

            }
            catch (Exception ex)
            {
                Location location = component == null ? null : component.getComponentResources().getLocation();

                throw new TapestryException(ex.getMessage(), location, ex);
            }
            finally
            {
                TapestryInternalUtils.close(ois);
            }
View Full Code Here

        {
            return factory.newBinding(description, container, component, subexpression, location);
        }
        catch (Exception ex)
        {
            throw new TapestryException(ServicesMessages.bindingSourceFailure(expression, ex),
                                        location, 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

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

        {
            return _binding.getBindingType();
        }
        catch (Exception ex)
        {
            throw new TapestryException(ex.getMessage(), this, ex);
        }
    }
View Full Code Here

        {
            return _binding.isInvariant();
        }
        catch (Exception ex)
        {
            throw new TapestryException(ex.getMessage(), this, ex);
        }
    }
View Full Code Here

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

        {
            return _binding.getAnnotation(annotationClass);
        }
        catch (Exception ex)
        {
            throw new TapestryException(ex.getMessage(), this, 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.