Path: blob/master/src/java.prefs/share/classes/java/util/prefs/InvalidPreferencesFormatException.java
41159 views
/*1* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package java.util.prefs;2627import java.io.NotSerializableException;2829/**30* Thrown to indicate that an operation could not complete because31* the input did not conform to the appropriate XML document type32* for a collection of preferences, as per the {@link Preferences}33* specification.34*35* @author Josh Bloch36* @see Preferences37* @since 1.438*/39public class InvalidPreferencesFormatException extends Exception {40/**41* Constructs an InvalidPreferencesFormatException with the specified42* cause.43*44* @param cause the cause (which is saved for later retrieval by the45* {@link Throwable#getCause()} method).46*/47public InvalidPreferencesFormatException(Throwable cause) {48super(cause);49}5051/**52* Constructs an InvalidPreferencesFormatException with the specified53* detail message.54*55* @param message the detail message. The detail message is saved for56* later retrieval by the {@link Throwable#getMessage()} method.57*/58public InvalidPreferencesFormatException(String message) {59super(message);60}6162/**63* Constructs an InvalidPreferencesFormatException with the specified64* detail message and cause.65*66* @param message the detail message. The detail message is saved for67* later retrieval by the {@link Throwable#getMessage()} method.68* @param cause the cause (which is saved for later retrieval by the69* {@link Throwable#getCause()} method).70*/71public InvalidPreferencesFormatException(String message, Throwable cause) {72super(message, cause);73}7475private static final long serialVersionUID = -791715184232119669L;76}777879