#156 Improve Exception Handling

Dozer v4.4
closed-fixed
nobody
4
2008-12-24
2008-12-22
dmitry (lv)
No

Please improve the exceptions a bit.
For example, if I get the following exception, I still have not idea which mapping it refers to, or which class it's mapping. I have to set a breakpoint to discover that information.

Example:
Caused by: net.sf.dozer.util.mapping.MappingException: java.lang.NoSuchFieldException: type
at net.sf.dozer.util.mapping.util.MappingUtils.throwMappingException(MappingUtils.java:91)
at net.sf.dozer.util.mapping.propertydescriptor.FieldPropertyDescriptor.<init>(FieldPropertyDescriptor.java:43)
at net.sf.dozer.util.mapping.propertydescriptor.PropertyDescriptorFactory.getPropertyDescriptor(PropertyDescriptorFactory.java:57)
at net.sf.dozer.util.mapping.fieldmap.FieldMap.getDestPropertyDescriptor(FieldMap.java:370)
at net.sf.dozer.util.mapping.fieldmap.FieldMap.getDestFieldType(FieldMap.java:103)
at net.sf.dozer.util.mapping.util.MappingsParser.processMappings(MappingsParser.java:97)
at net.sf.dozer.util.mapping.util.CustomMappingsLoader.load(CustomMappingsLoader.java:77)
at net.sf.dozer.util.mapping.DozerBeanMapper.loadCustomMappings(DozerBeanMapper.java:149)
at net.sf.dozer.util.mapping.DozerBeanMapper.getMappingProcessor(DozerBeanMapper.java:132)
at net.sf.dozer.util.mapping.DozerBeanMapper.map(DozerBeanMapper.java:94)

Discussion

  • dmitry (lv)

    dmitry (lv) - 2008-12-24
    • status: open --> closed-fixed
     
  • dmitry (lv)

    dmitry (lv) - 2008-12-24

    Fixed.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks