Fix Bugzilla 3491: updated error message text; also updated Javadoc to
reflect @throws; note that the Javadoc is still somewhat contradictory
about returning a null on error (it appears to throw exceptions instead)
PR:3491
Submitted by:Julian.Birch@ranplc.co.uk


git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@335486 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/org/apache/xalan/serialize/SerializerFactory.java b/src/org/apache/xalan/serialize/SerializerFactory.java
index 0a88a48..ca1e51f 100644
--- a/src/org/apache/xalan/serialize/SerializerFactory.java
+++ b/src/org/apache/xalan/serialize/SerializerFactory.java
@@ -95,6 +95,10 @@
    *
    * @param format The output format
    * @return A suitable serializer, or null
+   * @throws IllegalArgumentException (apparently -sc) if method is 
+   * null or an appropriate serializer can't be found
+   * @throws WrappedRuntimeException (apparently -sc) if an 
+   * exception is thrown while trying to find serializer
    */
   public static Serializer getSerializer(Properties format)
   {
@@ -108,7 +112,7 @@
 
       if (method == null)
         throw new IllegalArgumentException(
-          "The output format has not method name");
+          "The output format has a null method name");
 
       cls = null;  // (Class)_serializers.get(method);