Author: mrglavas
Date: Sun Feb  7 15:54:44 2010
New Revision: 907435

URL: http://svn.apache.org/viewvc?rev=907435&view=rev
Log:
Fixing JIRA Issue #1085: http://issues.apache.org/jira/browse/XERCESJ-1085. If 
an IOException was thrown from an attempt to read a schema document pass this 
exception on to the error reporter. Previously we were swallowing this 
exception and only reporting a vague error message. Applications can now get 
more information by querying SAXException.getException().

Modified:
    
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java

Modified: 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=907435&r1=907434&r2=907435&view=diff
==============================================================================
--- 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
 (original)
+++ 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
 Sun Feb  7 15:54:44 2010
@@ -2984,13 +2984,14 @@
                     if (toParseSchema) {
                         grammar = fSchemaLoader.loadSchema(fXSDDescription, 
xis, fLocationPairs);
                     }
-                } catch (IOException ex) {
+                } 
+                catch (IOException ex) {
                     final String [] locationHints = 
fXSDDescription.getLocationHints();
                     fXSIErrorReporter.fErrorReporter.reportError(
                         XSMessageFormatter.SCHEMA_DOMAIN,
                         "schema_reference.4",
                         new Object[] { locationHints != null ? 
locationHints[0] : XMLSymbols.EMPTY_STRING },
-                        XMLErrorReporter.SEVERITY_WARNING);
+                        XMLErrorReporter.SEVERITY_WARNING, ex);
                 }
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to