Changeset 55
- Timestamp:
- 04/04/06 10:50:24 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/java/net/schst/XJConf/TagDefinition.java
r42 r55 1 1 package net.schst.XJConf; 2 2 3 import java.lang.reflect.InvocationTargetException; 3 4 import java.lang.reflect.Method; 4 5 import java.util.ArrayList; … … 263 264 264 265 me.invoke(instance, meParams); 265 } catch (Exception e) { 266 } catch (InvocationTargetException e) { 267 if (e.getTargetException() instanceof Exception) { 268 throw new ValueConversionException("Could not set attribute '" + att.getName() + "' of '" + this.type + "'.", (Exception) e.getTargetException()); 269 } else { 270 throw new RuntimeException("Could not set attribute '" + att.getName() + "' of '" + this.type + "'.", e.getTargetException()); 271 } 272 }catch (Exception e) { 266 273 throw new ValueConversionException("Could not set attribute '" + att.getName() + "' of '" + this.type + "'.", e); 267 274 } 268 275 } 269 276 } 270 277 271 278 /** 272 279 * Add all children to the created instance
