01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: StorePreferencesErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.config.exceptions;
09:
10: import java.util.prefs.Preferences;
11:
12: public class StorePreferencesErrorException extends
13: ConfigErrorException {
14: private static final long serialVersionUID = -1781853604693398578L;
15:
16: private Preferences mPreferences = null;
17:
18: public StorePreferencesErrorException(Preferences preferences,
19: Throwable cause) {
20: super (
21: "An error occurred while storing the data to the preferences user node '"
22: + preferences.absolutePath() + "'.", cause);
23:
24: mPreferences = preferences;
25: }
26:
27: public Preferences getPreferences() {
28: return mPreferences;
29: }
30: }
|