KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > print > PrintException


1 /*
2  * @(#)PrintException.java 1.5 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
8 package javax.print;
9
10 /**
11  * Class PrintException encapsulates a printing-related error condition that
12  * occurred while using a Print Service instance. This base class
13  * furnishes only a string description of the error. Subclasses furnish more
14  * detailed information if applicable.
15  *
16  */

17 public class PrintException extends Exception JavaDoc {
18
19
20     /**
21      * Construct a print exception with no detail message.
22      */

23     public PrintException() {
24         super();
25     }
26
27     /**
28      * Construct a print exception with the given detail message.
29      *
30      * @param s Detail message, or null if no detail message.
31      */

32     public PrintException (String JavaDoc s) {
33         super (s);
34     }
35     
36     /**
37      * Construct a print exception chaining the supplied exception.
38      *
39      * @param e Chained exception.
40      */

41     public PrintException (Exception JavaDoc e) {
42         super ( e);
43     }
44     
45     /**
46      * Construct a print exception with the given detail message
47      * and chained exception.
48      * @param s Detail message, or null if no detail message.
49      * @param e Chained exception.
50      */

51     public PrintException (String JavaDoc s, Exception JavaDoc e) {
52         super (s, e);
53     }
54
55 }
56
Popular Tags