You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2003/11/07 15:28:05 UTC

cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor EnumConvertor.java

vgritsenko    2003/11/07 06:28:05

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor
                        EnumConvertor.java
  Log:
  fix compilation problem
  
  Revision  Changes    Path
  1.3       +4 -4      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/EnumConvertor.java
  
  Index: EnumConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/EnumConvertor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EnumConvertor.java	6 Nov 2003 23:03:50 -0000	1.2
  +++ EnumConvertor.java	7 Nov 2003 14:28:05 -0000	1.3
  @@ -53,6 +53,7 @@
   import java.lang.reflect.Method;
   import java.util.Locale;
   
  +import org.apache.avalon.framework.CascadingRuntimeException;
   import org.apache.cocoon.woody.datatype.Enum;
   
   /**
  @@ -82,7 +83,7 @@
               // FIXME: I'd like to throw a o.a.c.ProcessingException here,
               // but unfortunately it's a checked exception.
               // Checked exceptions are evil, aren't they?
  -            throw new RuntimeException(e);
  +            throw new CascadingRuntimeException("Got exception trying to convert " + value, e);
           }
       }
   
  @@ -108,8 +109,7 @@
               // FIXME: I'd like to throw a o.a.c.ProcessingException here,
               // but unfortunately it's a checked exception.
               // Checked exceptions are evil, aren't they?
  -            throw new RuntimeException("Class " + className + " not found", e);
  +            throw new CascadingRuntimeException("Class " + className + " not found", e);
           }
       }
  -
   }