java.util.prefs
Class InvalidPreferencesFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.util.prefs.InvalidPreferencesFormatException
All Implemented Interfaces:
Serializable

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, Serialized Form

Constructor Summary
InvalidPreferencesFormatException(String message)
          Creates a new exception with a descriptive message.
InvalidPreferencesFormatException(String message, Throwable cause)
          Creates a new exception with a descriptive message and a cause.
InvalidPreferencesFormatException(Throwable cause)
          Creates a new exception with the given cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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