Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util.prefs

Class InvalidPreferencesFormatException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.util.prefs.InvalidPreferencesFormatException


public class InvalidPreferencesFormatException

extends Exception

Indicates reading prefs from stream failed. Thrown by the importPreferences() method when the supplied input stream could not be read because it was not in the correct XML format.

Note that although this class inherits the Serializable interface, an attempt to serialize will fail with a NotSerializableException.

Since:Author:See Also:

Constructor Summary

InvalidPreferencesFormatException(java.lang.String message)

Creates a new exception with a descriptive message.
InvalidPreferencesFormatException(java.lang.Throwable cause)

Creates a new exception with the given cause.
InvalidPreferencesFormatException(java.lang.String message, java.lang.Throwable cause)

Creates a new exception with a descriptive message and a cause.

Constructor Details

InvalidPreferencesFormatException

public InvalidPreferencesFormatException(java.lang.String message)

Creates a new exception with a descriptive message. The cause remains uninitialized.

Parameters:


InvalidPreferencesFormatException

public InvalidPreferencesFormatException(java.lang.String message, java.lang.Throwable cause)

Creates a new exception with a descriptive message and a cause.

Parameters:


InvalidPreferencesFormatException

public InvalidPreferencesFormatException(java.lang.Throwable cause)

Creates a new exception with the given cause.

Parameters: