< prev index next >
jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/SchemaCache.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -92,11 +92,13 @@
schemaFactory.setResourceResolver(resourceResolver);
}
schema = schemaFactory.newSchema(source);
} catch (IOException | SAXException e) {
- throw new InternalError(e);
+ InternalError ie = new InternalError(e.getMessage());
+ ie.initCause(e);
+ throw ie;
} finally {
if (resourceResolver != null) resourceResolver.closeStreams();
}
}
}
@@ -219,7 +221,5 @@
@Override
public void setCertifiedText(boolean certifiedText) {
}
}
-
-
< prev index next >