|
@@ -264,15 +264,13 @@ public class AntTypeDefinition { |
|
|
throw new BuildException(msg, ncdfe); |
|
|
throw new BuildException(msg, ncdfe); |
|
|
} catch (NoSuchMethodException nsme) { |
|
|
} catch (NoSuchMethodException nsme) { |
|
|
throw new BuildException("Could not create type " + name |
|
|
throw new BuildException("Could not create type " + name |
|
|
+ " as the class " + c +" has no compatible constructor" ); |
|
|
|
|
|
|
|
|
+ " as the class " + c + " has no compatible constructor"); |
|
|
} catch (InstantiationException nsme) { |
|
|
} catch (InstantiationException nsme) { |
|
|
throw new BuildException("Could not create type " + |
|
|
|
|
|
name |
|
|
|
|
|
+ " as the class " + c + " is abstract"); |
|
|
|
|
|
} catch(IllegalAccessException e) { |
|
|
|
|
|
throw new BuildException("Could not create type " + |
|
|
|
|
|
name |
|
|
|
|
|
+ " as the constructor " + c + " is not accessible"); |
|
|
|
|
|
|
|
|
throw new BuildException("Could not create type " |
|
|
|
|
|
+ name + " as the class " + c + " is abstract"); |
|
|
|
|
|
} catch (IllegalAccessException e) { |
|
|
|
|
|
throw new BuildException("Could not create type " |
|
|
|
|
|
+ name + " as the constructor " + c + " is not accessible"); |
|
|
} catch (Throwable t) { |
|
|
} catch (Throwable t) { |
|
|
throw new BuildException( |
|
|
throw new BuildException( |
|
|
"Could not create type " + name + " due to " + t, t); |
|
|
"Could not create type " + name + " due to " + t, t); |
|
|