JavaTM 2 Platform
Standard Ed. 6

javax.print
接口 URIException


public interface URIException

接口 URIException 是一个混合接口,PrintException 的子类可实现它来报告有关 URI 地址的错误状况。打印服务 API 未定义任何实现了接口 URIException 的打印异常类,这由打印服务的实现程序来决定。


字段摘要
static int URIInaccessible
          指示打印机无法访问该 URI 地址。
static int URIOtherProblem
          指示出于所有其他原因未明确标识的问题类别。
static int URISchemeNotSupported
          指示打印机不支持该 URI 地址中的 URI 方案("http"、"ftp" 等等)。
 
方法摘要
 int getReason()
          返回事件的原因。
 URI getUnsupportedURI()
          返回 URI。
 

字段详细信息

URIInaccessible

static final int URIInaccessible
指示打印机无法访问该 URI 地址。例如,如果打印机将要获得打印数据时甚至无法建立到该 URI 地址的连接,则打印机可报告此错误。

另请参见:
常量字段值

URISchemeNotSupported

static final int URISchemeNotSupported
指示打印机不支持该 URI 地址中的 URI 方案("http"、"ftp" 等等)。

另请参见:
常量字段值

URIOtherProblem

static final int URIOtherProblem
指示出于所有其他原因未明确标识的问题类别。

另请参见:
常量字段值
方法详细信息

getUnsupportedURI

URI getUnsupportedURI()
返回 URI。

返回:
导致此异常的 URI。

getReason

int getReason()
返回事件的原因。

返回:
此接口中所枚举的某个预定义原因。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only