| BackingStoreException.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 a preferences operation could not complete because
14 * of a failure in the backing store, or a failure to contact the backing
15 * store.
16 *
17 * @author Josh Bloch
18 * @version %I%, %G%
19 * @since 1.4
20 */
21 public class BackingStoreException extends Exception {
22 /**
23 * Constructs a BackingStoreException with the specified detail message.
24 *
25 * @param s the detail message.
26 */
27 public BackingStoreException(String s) {
28 super(s);
29 }
30
31 /**
32 * Constructs a BackingStoreException with the specified cause.
33 *
34 * @param cause the cause
35 */
36 public BackingStoreException(Throwable cause) {
37 super(cause);
38 }
39
40 private static final long serialVersionUID = 859796500401108469L;
41 }
42