Package net.sf.saxon.resource
Class FailedResource
java.lang.Object
net.sf.saxon.resource.FailedResource
- All Implemented Interfaces:
Resource
FailedResource represents an item in a collection that could not be processed because of some kind of error
-
Constructor Details
-
FailedResource
Create a FailedResource- Parameters:
uri
- the URI of the resourceerror
- the error that occurred when attempting to process the resource
-
-
Method Details
-
getContentType
Get the media type (MIME type) of the resource if known- Specified by:
getContentType
in interfaceResource
- Returns:
- always null for this kind of resource
-
getResourceURI
Get a URI that identifies this resource- Specified by:
getResourceURI
in interfaceResource
- Returns:
- a URI identifying this resource
-
getItem
Get an XDM Item holding the contents of this resource. This method always throws the error associated with the resource.- Specified by:
getItem
in interfaceResource
- Returns:
- an item holding the contents of the resource. This version of the method never returns an item; it always throws an error
- Throws:
XPathException
- if a failure occurs materializing the resource
-
getError
Get the underlying error
-