1. /*
  2. * @(#)AttributeException.java 1.4 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.print;
  8. import javax.print.attribute.Attribute;
  9. /**
  10. * Interface AttributeException is a mixin interface which a subclass of
  11. * {@link
  12. * PrintException PrintException} can implement to report an error condition
  13. * involving one or more printing attributes that a particular Print
  14. * Service instance does not support. Either the attribute is not supported at
  15. * all, or the attribute is supported but the particular specified value is not
  16. * supported. The Print Service API does not define any print exception
  17. * classes that implement interface AttributeException, that being left to the
  18. * Print Service implementor's discretion.
  19. *
  20. */
  21. public interface AttributeException {
  22. /**
  23. * Returns the array of printing attribute classes for which the Print
  24. * Service instance does not support the attribute at all, or null if
  25. * there are no such attributes. The objects in the returned array are
  26. * classes that extend the base interface
  27. * {@link javax.print.attribute.Attribute Attribute}.
  28. *
  29. * @return unsupported attribute classes
  30. */
  31. public Class[] getUnsupportedAttributes();
  32. /**
  33. * Returns the array of printing attributes for which the Print Service
  34. * instance supports the attribute but does not support that particular
  35. * value of the attribute, or null if there are no such attribute values.
  36. *
  37. * @return unsupported attribute values
  38. */
  39. public Attribute[] getUnsupportedValues();
  40. }