public interface URIException
接口
URIException是一个混合接口,PrintException的子类可以实现它来报告涉及URI地址的错误条件。打印服务API没有定义任何实现接口URIException的打印异常类,这取决于打印服务实现者的自行决定。
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int表示打印机无法访问URI地址。static final int表示其他未被其他原因明确定义的任何问题。static final int表示打印机不支持URI地址中的URI方案("http","ftp"等)。 -
Method Summary
-
Field Details
-
URIInaccessible
static final int URIInaccessible表示打印机无法访问URI地址。例如,如果打印机尝试获取打印数据并且甚至无法建立到URI地址的连接,则可能会报告此错误。- 参见:
-
URISchemeNotSupported
static final int URISchemeNotSupported表示打印机不支持URI地址中的URI方案("http","ftp"等)。- 参见:
-
URIOtherProblem
static final int URIOtherProblem表示其他未被其他原因明确定义的任何问题。- 参见:
-
-
Method Details
-
getUnsupportedURI
URI getUnsupportedURI()返回URI。- 返回:
-
导致此异常的
URI
-
getReason
int getReason()返回此异常的原因。- 返回:
- 此接口中枚举的预定义原因之一
-