Class BackingStoreException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osgi.service.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.
See Also:
  • Constructor Details

    • BackingStoreException

      public BackingStoreException(String message)
      Constructs a BackingStoreException with the specified detail message.
      Parameters:
      message - The detail message.
    • BackingStoreException

      public BackingStoreException(String message, Throwable cause)
      Constructs a BackingStoreException with the specified detail message.
      Parameters:
      message - The detail message.
      cause - The cause of the exception. May be null.
      Since:
      1.1
  • Method Details

    • getCause

      public Throwable getCause()
      Returns the cause of this exception or null if no cause was set.
      Overrides:
      getCause in class Throwable
      Returns:
      The cause of this exception or null if no cause was set.
      Since:
      1.1
    • initCause

      public Throwable initCause(Throwable cause)
      Initializes the cause of this exception to the specified value.
      Overrides:
      initCause in class Throwable
      Parameters:
      cause - The cause of this exception.
      Returns:
      This exception.
      Throws:
      IllegalArgumentException - If the specified cause is this exception.
      IllegalStateException - If the cause of this exception has already been set.
      Since:
      1.1