/*
 * $Header$
 * 
 * Copyright (c) OSGi Alliance (2001). All Rights Reserved.
 * 
 * Implementation of certain elements of the OSGi Specification may be subject
 * to third party intellectual property rights, including without limitation,
 * patent rights (such a third party may or may not be a member of the OSGi
 * Alliance). The OSGi Alliance is not responsible and shall not be held
 * responsible in any manner for identifying or failing to identify any or all
 * such third party intellectual property rights.
 * 
 * This document and the information contained herein are provided on an "AS IS"
 * basis and THE OSGI ALLIANCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
 * HEREIN WILL NOT INFRINGE ANY RIGHTS AND ANY IMPLIED WARRANTIES OF
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL THE
 * OSGI ALLIANCE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF BUSINESS, LOSS OF
 * USE OF DATA, INTERRUPTION OF BUSINESS, OR FOR DIRECT, INDIRECT, SPECIAL OR
 * EXEMPLARY, INCIDENTIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND IN
 * CONNECTION WITH THIS DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
 * 
 * All Company, brand and product names may be trademarks that are the sole
 * property of their respective owners. All rights reserved.
 */
package org.osgi.service.prefs;

/**
 * Thrown to indicate that a preferences operation could not complete because of
 * a failure in the backing store, or a failure to contact the backing store.
 * 
 * @version $Revision$
 */
public class BackingStoreException extends Exception {
	/**
	 * Constructs a <tt>BackingStoreException</tt> with the specified detail
	 * message.
	 * 
	 * @param s the detail message.
	 */
	public BackingStoreException(String s) {
		super(s);
	}
}
@@ -1687,16 +1687,75 @@
 ption %7B%0A
+%09/**%0A%09 * Nested exception.%0A%09 */%0A%09private Throwable%09cause;%0A%0A
 %09/**%0A%09 *
@@ -1860,87 +1860,1084 @@
 m s 
-the detail message.%0A%09 */%0A%09public BackingStoreException(String s) %7B%0A%09%09super(s);%0A%09%7D
+The detail message.%0A%09 */%0A%09public BackingStoreException(String s) %7B%0A%09%09super(s);%0A%09%7D%0A%09/**%0A%09 * Constructs a %3Ctt%3EBackingStoreException%3C/tt%3E with the specified detail%0A%09 * message.%0A%09 * %0A%09 * @param s The detail message.%0A%09 * @param cause The cause of the exception. May be %3Ctt%3Enull%3C/tt%3E.%0A%09 * @since 1.1 %0A%09 */%0A%09public BackingStoreException(String s, Throwable cause) %7B%0A%09%09super(s);%0A%09%09this.cause = cause;%0A%09%7D%0A%09/**%0A%09 * Returns the cause of this exception or %3Ctt%3Enull%3C/tt%3E if no cause was%0A%09 * specified when this exception was created.%0A%09 * %0A%09 * @return The cause of this exception or %3Ctt%3Enull%3C/tt%3E if no cause was%0A%09 *         specified.%0A%09 * @since 1.1 %0A%09 */%0A%09public Throwable getCause() %7B%0A%09%09return cause;%0A%09%7D%0A%0A%09/**%0A%09 * The cause of this exception can only be set when constructed.%0A%09 * %0A%09 * @throws java.lang.IllegalStateException This method will always throw an%0A%09 *         %3Ctt%3EIllegalStateException%3C/tt%3E since the cause of this%0A%09 *         exception can only be set when constructed.%0A%09 * @since 1.1 %0A%09 */%0A%09public Throwable initCause(Throwable cause) %7B%0A%09%09throw new IllegalStateException();%0A%09%7D%0A
 %0A%7D

Add support for nested cause