cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pruss...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/serialization SVGSerializer.java
Date Fri, 23 Feb 2001 15:25:07 GMT
prussell    01/02/23 07:25:07

  Modified:    src/org/apache/cocoon/serialization Tag: xml-cocoon2
                        SVGSerializer.java
  Log:
  Slightly more helpful error message when someone forgets to set the
  transcoder for an SVGSerializer.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.27  +8 -1      xml-cocoon/src/org/apache/cocoon/serialization/Attic/SVGSerializer.java
  
  Index: SVGSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/SVGSerializer.java,v
  retrieving revision 1.1.2.26
  retrieving revision 1.1.2.27
  diff -u -r1.1.2.26 -r1.1.2.27
  --- SVGSerializer.java	2001/02/22 17:10:45	1.1.2.26
  +++ SVGSerializer.java	2001/02/23 15:25:07	1.1.2.27
  @@ -30,7 +30,7 @@
    *
    * @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
    * @author <a href="mailto:rossb@apache.org">Ross Burton</a>
  - * @version CVS $Revision: 1.1.2.26 $ $Date: 2001/02/22 17:10:45 $
  + * @version CVS $Revision: 1.1.2.27 $ $Date: 2001/02/23 15:25:07 $
    */
   public class SVGSerializer extends SVGBuilder implements Composer, Serializer, Configurable,
Poolable {
   
  @@ -77,6 +77,13 @@
               }
           }
           // Now try creating this transcoder
  +        if ( transcoderName == null ) {
  +            throw new ConfigurationException(
  +                "Could not autodetect transcoder for SVGSerializer and "
  +                + "no transcoder was specified in the sitemap configuration."
  +            );
  +        }
  +        
           try {
               this.transcoder = (Transcoder)ClassUtils.newInstance(transcoderName);
           } catch (Exception ex) {
  
  
  

Mime
View raw message