java.util.prefs

Class 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: 1.4

See Also: Preferences

UNKNOWN: updated to 1.4

Constructor Summary
InvalidPreferencesFormatException(String message)
Creates a new exception with a descriptive message.
InvalidPreferencesFormatException(Throwable cause)
Creates a new exception with the given cause.
InvalidPreferencesFormatException(String message, Throwable cause)
Creates a new exception with a descriptive message and a cause.

Constructor Detail

InvalidPreferencesFormatException

public InvalidPreferencesFormatException(String message)
Creates a new exception with a descriptive message. The cause remains uninitialized.

Parameters: message the message

InvalidPreferencesFormatException

public InvalidPreferencesFormatException(Throwable cause)
Creates a new exception with the given cause.

Parameters: cause the cause

InvalidPreferencesFormatException

public InvalidPreferencesFormatException(String message, Throwable cause)
Creates a new exception with a descriptive message and a cause.

Parameters: message the message cause the cause