模块 java.desktop

接口 AttributeException


public interface AttributeException
接口 AttributeException 是一个混合接口,PrintException 的子类可以实现它来报告涉及一个或多个特定打印服务实例不支持的打印属性的错误情况。根本不支持该属性,或者支持该属性但不支持特定的指定值。 Print Service API 没有定义任何实现接口 AttributeException 的打印异常类,这由 Print Service 实现者自行决定。
  • 方法总结

    修饰符和类型
    方法
    描述
    Class<?>[]
    返回打印服务实例根本不支持该属性的打印属性类数组,如果没有此类属性,则返回 null
    返回打印服务实例支持该属性但不支持该属性的特定值的打印属性数组,如果没有此类属性值,则返回 null
  • 方法详情

    • getUnsupportedAttributes

      Class <?>[] getUnsupportedAttributes()
      返回打印服务实例根本不支持该属性的打印属性类数组,如果没有此类属性,则返回 null。返回数组中的对象是扩展基接口 Attribute 的类。
      返回:
      不支持的属性类
    • getUnsupportedValues

      Attribute [] getUnsupportedValues()
      返回打印服务实例支持该属性但不支持该属性的特定值的打印属性数组,如果没有此类属性值,则返回 null
      返回:
      不受支持的属性值