lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication DefaultSiteTree.java
Date Thu, 14 Aug 2003 16:30:53 GMT
egli        2003/08/14 09:30:53

  Modified:    src/java/org/apache/lenya/cms/publication
                        DefaultSiteTree.java
  Log:
  Provide a better message in the Exception.
  
  Revision  Changes    Path
  1.28      +6 -3      cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultSiteTree.java
  
  Index: DefaultSiteTree.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultSiteTree.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- DefaultSiteTree.java	8 Aug 2003 09:08:19 -0000	1.27
  +++ DefaultSiteTree.java	14 Aug 2003 16:30:53 -0000	1.28
  @@ -94,6 +94,8 @@
   
       private Document document = null;
       private File treefile = null;
  +    // the area is only retained to provide some more info when raising an exception.
  +    private String area = "";
   
       /**
        * Create a DefaultSiteTree
  @@ -113,6 +115,7 @@
                       + area
                       + File.separator
                       + SITE_TREE_FILENAME));
  +        this.area = area;
       }
   
       /**
  @@ -274,7 +277,7 @@
           Node parentNode = getNodeInternal(parentid);
   
           if (parentNode == null) {
  -            throw new SiteTreeException("Parentid: " + parentid + " not found");
  +            throw new SiteTreeException("Parentid: " + parentid + " in " + area + " tree
not found");
           }
   
           log.debug("PARENT ELEMENT: " + parentNode);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message