Author: mrglavas
Date: Sun Feb  7 15:53:54 2010
New Revision: 907433

URL: http://svn.apache.org/viewvc?rev=907433&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/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java

Modified: 
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=907433&r1=907432&r2=907433&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java Sun 
Feb  7 15:53:54 2010
@@ -2695,13 +2695,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