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()
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() throws XPathException
getItem
in interface Resource
XPathException
- if a failure occurs materializing the resourcepublic XPathException getError()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.