Top Description Fields Constructors Methods
org.osgi.service.prefs

public Class BackingStoreException

extends Exception
Class Inheritance

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.
Author
$Id: a5a8d03c2b50f6b02cf791ac3df6f03d136e2afa $

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
BackingStoreException(String
The detail message.
message
)

Constructs a BackingStoreException with the specified detail message.

public
BackingStoreException(String
The detail message.
message
,
Throwable
The cause of the exception. May be null.
cause
)

Constructs a BackingStoreException with the specified detail message.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

The cause of this exception or null if no cause was set.
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception or null if no cause was set.

public Throwable

Returns:

This exception.
initCause
(Throwable
The cause of this exception.
cause
)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this exception to the specified value.

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

BackingStoreExceptionback to summary
public BackingStoreException(String message)

Constructs a BackingStoreException with the specified detail message.

Parameters
message:String

The detail message.

BackingStoreExceptionback to summary
public BackingStoreException(String message, Throwable cause)

Constructs a BackingStoreException with the specified detail message.

Parameters
message:String

The detail message.

cause:Throwable

The cause of the exception. May be null.

Since
1.1

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception or null if no cause was set.

Returns:Throwable

The cause of this exception or null if no cause was set.

Annotations
@Override
Since
1.1
initCauseback to summary
public Throwable initCause(Throwable cause)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this exception to the specified value.

Parameters
cause:Throwable

The cause of this exception.

Returns:Throwable

This exception.

Annotations
@Override
Exceptions
IllegalArgumentException:
If the specified cause is this exception.
IllegalStateException:
If the cause of this exception has already been set.
Since
1.1