@@ -108,17 +108,17 @@ protected Source resolveDocument(final String location) throws XPathException {
108
108
* @return the resolved stylesheet as a source
109
109
* @throws org.exist.xquery.XPathException if the item does not exist, or is not a document
110
110
*/
111
- static Source resolveDocument (final String location , final XQueryContext xQueryContext , Expression containingExpression ) throws org . exist . xquery . XPathException {
111
+ static Source resolveDocument (final String location , final XQueryContext xQueryContext , Expression containingExpression ) throws XPathException {
112
112
113
113
final Sequence document ;
114
114
try {
115
115
document = DocUtils .getDocument (xQueryContext , location );
116
116
} catch (final PermissionDeniedException e ) {
117
- throw new org . exist . xquery . XPathException (containingExpression , ErrorCodes .FODC0002 ,
117
+ throw new XPathException (containingExpression , ErrorCodes .FODC0002 ,
118
118
"Can not access '" + location + "'" + e .getMessage ());
119
119
}
120
120
if (document == null || document .isEmpty ()) {
121
- throw new org . exist . xquery . XPathException (containingExpression , ErrorCodes .FODC0002 ,
121
+ throw new XPathException (containingExpression , ErrorCodes .FODC0002 ,
122
122
"No document found at location '" + location );
123
123
}
124
124
if (document .hasOne () && Type .subTypeOf (document .getItemType (), Type .NODE )) {
@@ -129,7 +129,7 @@ else if (document.itemAt(0) instanceof Node node) {
129
129
return new DOMSource (node );
130
130
}
131
131
}
132
- throw new org . exist . xquery . XPathException (containingExpression , ErrorCodes .FODC0002 ,
132
+ throw new XPathException (containingExpression , ErrorCodes .FODC0002 ,
133
133
"Location '" + location + "' returns an item which is not a document node" );
134
134
}
135
135
}
0 commit comments