You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2004/03/15 22:50:08 UTC

cvs commit: cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel Repeater.java

joerg       2004/03/15 13:50:08

  Modified:    src/blocks/forms/java/org/apache/cocoon/forms/formmodel
                        Repeater.java
  Log:
  add location information to exception
  
  Revision  Changes    Path
  1.5       +3 -2      cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Repeater.java
  
  Index: Repeater.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Repeater.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Repeater.java	9 Mar 2004 13:17:26 -0000	1.4
  +++ Repeater.java	15 Mar 2004 21:50:08 -0000	1.5
  @@ -279,7 +279,8 @@
       public void generateWidgetLabel(String widgetId, ContentHandler contentHandler) throws SAXException {
           WidgetDefinition widgetDefinition = repeaterDefinition.getWidgetDefinition(widgetId);
           if (widgetDefinition == null)
  -            throw new SAXException("Repeater \"" + getFullyQualifiedId() + "\" contains no widget with id \"" + widgetId + "\".");
  +            throw new SAXException("Repeater \"" + getFullyQualifiedId() + "\" at " + this.getLocation()
  +                                   + " contains no widget with id \"" + widgetId + "\".");
           widgetDefinition.generateLabel(contentHandler);
       }