Unspecific (and slightly mispelled) exception for duplicate type encountered in 
schema source
---------------------------------------------------------------------------------------------

                 Key: WSCOMMONS-298
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-298
             Project: WS-Commons
          Issue Type: Bug
          Components: XmlSchema
            Reporter: Benson Margulies


1) Please throw a specific exception class.
2) Please balance the quotes.


public void addType(XmlSchemaType type) {
        QName qname = type.getQName();
        if (schemaTypes.contains(qname)) {
            throw new RuntimeException("Schema for namespace '" +
                    syntacticalTargetNamespace + "' already contains type '" +
                    qname.getLocalPart());
        }
        schemaTypes.add(qname, type);
    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to