KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > prefs > InvalidPreferencesFormatException


1 /*
2  * @(#)InvalidPreferencesFormatException.java 1.7 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 java.util.prefs;
9
10 import java.io.NotSerializableException JavaDoc;
11
12 /**
13  * Thrown to indicate that an operation could not complete because
14  * the input did not conform to the appropriate XML document type
15  * for a collection of preferences, as per the {@link Preferences}
16  * specification.
17  *
18  * @author Josh Bloch
19  * @version 1.7, 12/19/03
20  * @see Preferences
21  * @since 1.4
22  */

23 public class InvalidPreferencesFormatException extends Exception JavaDoc {
24     /**
25      * Constructs an InvalidPreferencesFormatException with the specified
26      * cause.
27      *
28      * @param cause the cause (which is saved for later retrieval by the
29      * {@link Throwable#getCause()} method).
30      */

31     public InvalidPreferencesFormatException(Throwable JavaDoc cause) {
32         super(cause);
33     }
34
35    /**
36     * Constructs an InvalidPreferencesFormatException with the specified
37     * detail message.
38     *
39     * @param message the detail message. The detail message is saved for
40     * later retrieval by the {@link Throwable#getMessage()} method.
41     */

42     public InvalidPreferencesFormatException(String JavaDoc message) {
43         super(message);
44     }
45
46     /**
47      * Constructs an InvalidPreferencesFormatException with the specified
48      * detail message and cause.
49      *
50      * @param message the detail message. The detail message is saved for
51      * later retrieval by the {@link Throwable#getMessage()} method.
52      * @param cause the cause (which is saved for later retrieval by the
53      * {@link Throwable#getCause()} method).
54      */

55     public InvalidPreferencesFormatException(String JavaDoc message, Throwable JavaDoc cause) {
56         super(message, cause);
57     }
58
59     private static final long serialVersionUID = -791715184232119669L;
60 }
61
Popular Tags