java.util.prefs
Class BackingStoreException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.util.prefs.BackingStoreException
All Implemented Interfaces:
Serializable

public class BackingStoreException
extends Exception

Thrown to indicate that a preferences operation could not complete because of a failure in the backing store, or a failure to contact the backing store.

Note, that although BackingStoreException inherits Serializable interface from Exception, it is not intended to be Serializable. Appropriate serialization methods are implemented to throw NotSerializableException.

Since:
1.4
Author:
Josh Bloch

Field Summary
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
BackingStoreException(String s)
          Constructs a BackingStoreException with the specified detail message.
BackingStoreException(Throwable cause)
          Constructs a BackingStoreException with the specified cause.
 
Method Summary
private  void readObject(ObjectInputStream in)
          Throws NotSerializableException, since BackingStoreException objects are not intended to be serializable.
private  void writeObject(ObjectOutputStream out)
          Throws NotSerializableException, since BackingStoreException objects are not intended to be serializable.
 
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

BackingStoreException

public BackingStoreException(String s)
Constructs a BackingStoreException with the specified detail message.

Parameters:
s - the detail message.

BackingStoreException

public BackingStoreException(Throwable cause)
Constructs a BackingStoreException with the specified cause.

Parameters:
cause - the cause
Method Detail

writeObject

private void writeObject(ObjectOutputStream out)
                  throws NotSerializableException
Throws NotSerializableException, since BackingStoreException objects are not intended to be serializable.

Throws:
NotSerializableException

readObject

private void readObject(ObjectInputStream in)
                 throws NotSerializableException
Throws NotSerializableException, since BackingStoreException objects are not intended to be serializable.

Throws:
NotSerializableException