mcconnell 2002/07/07 16:24:43 Modified: assembly/src/java/org/apache/excalibur/meta/builder XMLInfoCreator.java Log: corrected exception declaration Revision Changes Path 1.2 +5 -2 jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/meta/builder/XMLInfoCreator.java Index: XMLInfoCreator.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/meta/builder/XMLInfoCreator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- XMLInfoCreator.java 5 Jul 2002 10:38:59 -0000 1.1 +++ XMLInfoCreator.java 7 Jul 2002 23:24:43 -0000 1.2 @@ -51,12 +51,15 @@ * @param implementationKey The classname of Component * @param inputStream the InputStream to load Type from * @return the created Type - * @throws ConfigurationException if an error occurs + * @throws Exception if an error occurs */ public Type createType( String implementationKey, InputStream inputStream ) throws Exception { + if( inputStream == null ) + throw new NullPointerException("input stream."); + final InputSource input = new InputSource( inputStream ); final String classname = implementationKey; final Configuration configuration = ConfigurationBuilder.build( input );
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>