1. /*
  2. * @(#)InvalidPreferencesFormatException.java 1.7 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.util.prefs;
  8. import java.io.NotSerializableException;
  9. /**
  10. * Thrown to indicate that an operation could not complete because
  11. * the input did not conform to the appropriate XML document type
  12. * for a collection of preferences, as per the {@link Preferences}
  13. * specification.
  14. *
  15. * @author Josh Bloch
  16. * @version 1.7, 12/19/03
  17. * @see Preferences
  18. * @since 1.4
  19. */
  20. public class InvalidPreferencesFormatException extends Exception {
  21. /**
  22. * Constructs an InvalidPreferencesFormatException with the specified
  23. * cause.
  24. *
  25. * @param cause the cause (which is saved for later retrieval by the
  26. * {@link Throwable#getCause()} method).
  27. */
  28. public InvalidPreferencesFormatException(Throwable cause) {
  29. super(cause);
  30. }
  31. /**
  32. * Constructs an InvalidPreferencesFormatException with the specified
  33. * detail message.
  34. *
  35. * @param message the detail message. The detail message is saved for
  36. * later retrieval by the {@link Throwable#getMessage()} method.
  37. */
  38. public InvalidPreferencesFormatException(String message) {
  39. super(message);
  40. }
  41. /**
  42. * Constructs an InvalidPreferencesFormatException with the specified
  43. * detail message and cause.
  44. *
  45. * @param message the detail message. The detail message is saved for
  46. * later retrieval by the {@link Throwable#getMessage()} method.
  47. * @param cause the cause (which is saved for later retrieval by the
  48. * {@link Throwable#getCause()} method).
  49. */
  50. public InvalidPreferencesFormatException(String message, Throwable cause) {
  51. super(message, cause);
  52. }
  53. private static final long serialVersionUID = -791715184232119669L;
  54. }