InvalidPreferencesFormatException.java |
1 /* 2 * %W% %E% 3 * 4 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. 5 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.util.prefs; 9 10 import java.io.NotSerializableException; 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 %I%, %G% 20 * @see Preferences 21 * @since 1.4 22 */ 23 public class InvalidPreferencesFormatException extends Exception { 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 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 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 message, Throwable cause) { 56 super(message, cause); 57 } 58 59 private static final long serialVersionUID = -791715184232119669L; 60 } 61