Browse Source

When a ConverterException occurs then fail convertion and configuration and re-wrap and throw exception

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270403 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
0cdd9dd277
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java

+ 6
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java View File

@@ -287,7 +287,7 @@ public class DefaultConfigurer
getLogger().debug( message, ce ); getLogger().debug( message, ce );
} }


return false;
throw new ConfigurationException( ce.getMessage(), ce );
} }
catch( final Exception e ) catch( final Exception e )
{ {
@@ -296,6 +296,11 @@ public class DefaultConfigurer
throw new ConfigurationException( message, e ); throw new ConfigurationException( message, e );
} }


if( null == value )
{
return false;
}

try try
{ {
method.invoke( object, new Object[]{value} ); method.invoke( object, new Object[]{value} );


Loading…
Cancel
Save