javax.print

Interface URIException

public interface URIException

URIException specifies methods a specific subclass of {@link javax.print.PrintException} may implement to provide further informations of printing errors if URI problems are involved.

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

Field Summary
intURIInaccessible
Indicates that the provided URI is not accessible.
intURIOtherProblem
Indicates any other problem which is not defined by the other reason constants.
intURISchemeNotSupported
Indicates that the print service does not support a specific uri scheme (for example the ftp scheme).
Method Summary
intgetReason()
Returns the reason for this exception as predefined constants in this interface.
URIgetUnsupportedURI()
Returns the unsupported URI which caused this exception.

Field Detail

URIInaccessible

public int URIInaccessible
Indicates that the provided URI is not accessible.

URIOtherProblem

public int URIOtherProblem
Indicates any other problem which is not defined by the other reason constants.

URISchemeNotSupported

public int URISchemeNotSupported
Indicates that the print service does not support a specific uri scheme (for example the ftp scheme).

Method Detail

getReason

public int getReason()
Returns the reason for this exception as predefined constants in this interface.

Returns: The reason.

getUnsupportedURI

public URI getUnsupportedURI()
Returns the unsupported URI which caused this exception.

Returns: The unsupported URI.