cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/slide/java/org/apache/cocoon/components/slide/impl SlideConfigurationAdapter.java
Date Tue, 29 Jun 2004 09:46:28 GMT
unico       2004/06/29 02:46:27

  Modified:    src/blocks/slide/java/org/apache/cocoon/components/slide/impl
                        SlideConfigurationAdapter.java
  Log:
  Slide configuration throws ConfigurationException when child does not exist
  
  Revision  Changes    Path
  1.5       +4 -1      cocoon-2.1/src/blocks/slide/java/org/apache/cocoon/components/slide/impl/SlideConfigurationAdapter.java
  
  Index: SlideConfigurationAdapter.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/slide/java/org/apache/cocoon/components/slide/impl/SlideConfigurationAdapter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SlideConfigurationAdapter.java	13 Apr 2004 15:16:37 -0000	1.4
  +++ SlideConfigurationAdapter.java	29 Jun 2004 09:46:27 -0000	1.5
  @@ -62,6 +62,9 @@
        */
       public Configuration getConfiguration(String child)
         throws ConfigurationException {
  +        if (this.configuration.getChild(child, false) == null)
  +            throw new ConfigurationException("No configuration element " + child 
  +                    + " at " + this.configuration.getLocation(), this);
           return new SlideConfigurationAdapter(this.configuration.getChild(child));
       }
   
  
  
  

Mime
View raw message