Constructor and Description |
---|
FailedResource(java.lang.String uri,
XPathException error)
Create a FailedResource
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Get the media type (MIME type) of the resource if known
|
XPathException |
getError()
Get the underlying error
|
Item |
getItem(XPathContext context)
Get an XDM Item holding the contents of this resource.
|
java.lang.String |
getResourceURI()
Get a URI that identifies this resource
|
public FailedResource(java.lang.String uri, XPathException error)
uri
- the URI of the resourceerror
- the error that occurred when attempting to process the resourcepublic java.lang.String getContentType()
getContentType
in interface Resource
public java.lang.String getResourceURI()
getResourceURI
in interface Resource
public Item getItem(XPathContext context) throws XPathException
getItem
in interface Resource
context
- the XPath evaluation contextXPathException
- if a failure occurs materializing the resourcepublic XPathException getError()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.