javax.print

Interface AttributeException

public interface AttributeException

AttributeException specifies two methods a specific subclass of {@link javax.print.PrintException} may implement to provide further information of printing errors if unsupported attribute classes or values of attributes are involved.

There exists no PrintException class implementing this interface. Providing these extensions in PrintException subclasses is left to the concrete print service implementation.

Method Summary
Class[]getUnsupportedAttributes()
Returns the unsupported printing attribute classes for a print service that does not support the attribute category at all.
Attribute[]getUnsupportedValues()
Returns the unsupported attribute values of printing attributes a specific print service does support but not the particular provided value.

Method Detail

getUnsupportedAttributes

public Class[] getUnsupportedAttributes()
Returns the unsupported printing attribute classes for a print service that does not support the attribute category at all. The returned class instances are sublcasses of the base interface {@link Attribute}.

Returns: The unsupported attribute classes, or null if there are no such attribute classes.

getUnsupportedValues

public Attribute[] getUnsupportedValues()
Returns the unsupported attribute values of printing attributes a specific print service does support but not the particular provided value.

Returns: The unsupported attribute values, or null if there are no such attributes values.