cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/notification DefaultNotifyingBuilder.java
Date Fri, 28 Jun 2002 13:26:23 GMT
vgritsenko    2002/06/28 06:26:23

  Modified:    src/java/org/apache/cocoon/components/notification
                        DefaultNotifyingBuilder.java
  Log:
  don't put null in extra descriptions
  
  Revision  Changes    Path
  1.8       +6 -8      xml-cocoon2/src/java/org/apache/cocoon/components/notification/DefaultNotifyingBuilder.java
  
  Index: DefaultNotifyingBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/notification/DefaultNotifyingBuilder.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DefaultNotifyingBuilder.java	7 May 2002 20:36:30 -0000	1.7
  +++ DefaultNotifyingBuilder.java	28 Jun 2002 13:26:23 -0000	1.8
  @@ -100,25 +100,23 @@
           
               SAXParseException saxParseException = (SAXParseException) rootCauseThrowable;
          
               n.setMessage         (                           saxParseException.getMessage()
     );
  -            n.addExtraDescription("location",                saxParseException.getSystemId()
    );
  +            n.addExtraDescription("location", String.valueOf(saxParseException.getSystemId())
   );
               n.addExtraDescription("line"    , String.valueOf(saxParseException.getLineNumber())
 );
               n.addExtraDescription("column"  , String.valueOf(saxParseException.getColumnNumber()));
  -        } 
  -        else if (rootCauseThrowable instanceof TransformerException) {
  +        } else if (rootCauseThrowable instanceof TransformerException) {
               TransformerException transformerException = (TransformerException) rootCauseThrowable;
               SourceLocator sourceLocator = transformerException.getLocator();
               n.setMessage         (                           transformerException.getMessage());
               
               if( null != sourceLocator )
               {
  -                n.addExtraDescription("location",                sourceLocator.getSystemId()
     );
  +                n.addExtraDescription("location", String.valueOf(sourceLocator.getSystemId())
    );
                   n.addExtraDescription("line"    , String.valueOf(sourceLocator.getLineNumber())
  );
                   n.addExtraDescription("column"  , String.valueOf(sourceLocator.getColumnNumber())
);
               }
  -        }
  -        else{
  +        } else {
                   n.setMessage(t.getMessage());
  -         }
  +        }
           
           n.setDescription(t.toString());
           
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message