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

public Class ConfigurationException

extends Exception
Class Inheritance

An Exception class to inform the Configuration Admin service of problems with configuration data.
Author
$Id: b9d3e8bbf750a5dcdc3a3ef96f9ae8f479ef66c7 $

Field Summary

Modifier and TypeField and Description
private final String
private final String
private static final long

Constructor Summary

AccessConstructor and Description
public
ConfigurationException(String
name of the property that caused the problem, null if no specific property was the cause
property
,
String
reason for failure
reason
)

Create a ConfigurationException object.

public
ConfigurationException(String
name of the property that caused the problem, null if no specific property was the cause
property
,
String
reason for failure
reason
,
Throwable
The cause of this exception.
cause
)

Create a ConfigurationException object.

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 String

Returns:

name of property or null if no specific property caused the problem
getProperty
()

Return the property name that caused the failure or null.

public String

Returns:

reason of the failure
getReason
()

Return the reason for this exception.

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

propertyback to summary
private final String property
reasonback to summary
private final String reason
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

ConfigurationExceptionback to summary
public ConfigurationException(String property, String reason)

Create a ConfigurationException object.

Parameters
property:String

name of the property that caused the problem, null if no specific property was the cause

reason:String

reason for failure

ConfigurationExceptionback to summary
public ConfigurationException(String property, String reason, Throwable cause)

Create a ConfigurationException object.

Parameters
property:String

name of the property that caused the problem, null if no specific property was the cause

reason:String

reason for failure

cause:Throwable

The cause of this exception.

Since
1.2

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.2
getPropertyback to summary
public String getProperty()

Return the property name that caused the failure or null.

Returns:String

name of property or null if no specific property caused the problem

getReasonback to summary
public String getReason()

Return the reason for this exception.

Returns:String

reason of the failure

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.2