Package org.osgi.service.prefs
Class BackingStoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osgi.service.prefs.BackingStoreException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionBackingStoreException
(String message) Constructs aBackingStoreException
with the specified detail message.BackingStoreException
(String message, Throwable cause) Constructs aBackingStoreException
with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BackingStoreException
Constructs aBackingStoreException
with the specified detail message.- Parameters:
message
- The detail message.
-
BackingStoreException
Constructs aBackingStoreException
with the specified detail message.- Parameters:
message
- The detail message.cause
- The cause of the exception. May benull
.- Since:
- 1.1
-
-
Method Details
-
getCause
Returns the cause of this exception ornull
if no cause was set. -
initCause
Initializes the cause of this exception to the specified value.- Overrides:
initCause
in classThrowable
- 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
-