APIdia Launch Partner
Top Description Fields Constructors
javax.print

public Class PrintException

extends Exception
Class Inheritance
Known Direct Subclasses
sun.print.PrintJobAttributeException, sun.print.PrintJobFlavorException
Imports
java.io.Serial

Class PrintException encapsulates a printing-related error condition that occurred while using a Print Service instance. This base class furnishes only a string description of the error. Subclasses furnish more detailed information if applicable.

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
public
PrintException()

Construct a print exception with no detail message.

public
PrintException(String
detail message, or null if no detail message
s
)

Construct a print exception with the given detail message.

public
PrintException(Exception
chained exception
e
)

Construct a print exception chaining the supplied exception.

public
PrintException(String
detail message, or null if no detail message
s
,
Exception
chained exception
e
)

Construct a print exception with the given detail message and chained exception.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

PrintExceptionback to summary
public PrintException()

Construct a print exception with no detail message.

PrintExceptionback to summary
public PrintException(String s)

Construct a print exception with the given detail message.

Parameters
s:String

detail message, or null if no detail message

PrintExceptionback to summary
public PrintException(Exception e)

Construct a print exception chaining the supplied exception.

Parameters
e:Exception

chained exception

PrintExceptionback to summary
public PrintException(String s, Exception e)

Construct a print exception with the given detail message and chained exception.

Parameters
s:String

detail message, or null if no detail message

e:Exception

chained exception