Constructor and Description |
---|
FailedResource(String uri,
XPathException error)
Create a FailedResource
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getResourceURI()
Get a URI that identifies this resource
|
public FailedResource(String uri, XPathException error)
uri
- the URI of the resourceerror
- the error that occurred when attempting to process the resourcepublic String getContentType()
getContentType
in interface Resource
public 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-2017 Saxonica Limited. All rights reserved.