You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2008/02/17 20:34:34 UTC
[jira] Resolved: (WSCOMMONS-298) Unspecific (and slightly
mispelled) exception for duplicate type encountered in schema source
[ https://issues.apache.org/jira/browse/WSCOMMONS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ajith Harshana Ranabahu resolved WSCOMMONS-298.
-----------------------------------------------
Resolution: Fixed
Assignee: Ajith Harshana Ranabahu
Changed the exception to XmlSchemaException and also balanced the quotes
> 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
> Assignee: Ajith Harshana Ranabahu
>
> 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org