dmitri      2002/10/19 20:43:55

  Modified:    jxpath/src/java/org/apache/commons/jxpath/util
                        ValueUtils.java
  Log:
  Improved error reporting
  
  Revision  Changes    Path
  1.9       +10 -6     
jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/util/ValueUtils.java
  
  Index: ValueUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/util/ValueUtils.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ValueUtils.java   12 Oct 2002 20:57:44 -0000      1.8
  +++ ValueUtils.java   20 Oct 2002 03:43:55 -0000      1.9
  @@ -288,7 +288,9 @@
           }
           catch (Exception ex){
               throw new JXPathException(
  -                "Cannot access property: " + propertyDescriptor.getName(), ex);
  +                "Cannot access property: " +
  +                    (bean == null ? "null" : bean.getClass().getName()) +
  +                    "." + propertyDescriptor.getName(), ex);
           }
           return value;
       }
  @@ -310,7 +312,9 @@
           }
           catch (Exception ex){
               throw new JXPathException(
  -                "Cannot modify property: " + propertyDescriptor.getName(), ex);
  +                "Cannot modify property: " +
  +                    (bean == null ? "null" : bean.getClass().getName()) +
  +                    "." + propertyDescriptor.getName(), ex);
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to