Top Description Fields Constructors Methods
org.osgi.framework

public Class InvalidSyntaxException

extends Exception
Class Inheritance

A Framework exception used to indicate that a filter string has an invalid syntax.

An InvalidSyntaxException object indicates that a filter string parameter has an invalid syntax and cannot be parsed. See Filter for a description of the filter string syntax.

This exception conforms to the general purpose exception chaining mechanism.

Author
$Id: 59696296eff1574fa844e3a0a975ba6c83ec59af $

Field Summary

Modifier and TypeField and Description
private final String
filter

The invalid filter string.

pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
InvalidSyntaxException(String
The message.
msg
,
String
The invalid filter string.
filter
)

Creates an exception of type InvalidSyntaxException.

public
InvalidSyntaxException(String
The message.
msg
,
String
The invalid filter string.
filter
,
Throwable
The cause of this exception.
cause
)

Creates an exception of type InvalidSyntaxException.

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:

The invalid filter string.
getFilter
()

Returns the filter string that generated the InvalidSyntaxException object.

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.

private static String
message(String msg, String filter)

Return message string for super constructor.

Field Detail

filterback to summary
private final String filter

The invalid filter string.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

InvalidSyntaxExceptionback to summary
public InvalidSyntaxException(String msg, String filter)

Creates an exception of type InvalidSyntaxException.

This method creates an InvalidSyntaxException object with the specified message and the filter string which generated the exception.

Parameters
msg:String

The message.

filter:String

The invalid filter string.

InvalidSyntaxExceptionback to summary
public InvalidSyntaxException(String msg, String filter, Throwable cause)

Creates an exception of type InvalidSyntaxException.

This method creates an InvalidSyntaxException object with the specified message and the filter string which generated the exception.

Parameters
msg:String

The message.

filter:String

The invalid filter string.

cause:Throwable

The cause of this exception.

Since
1.3

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.3
getFilterback to summary
public String getFilter()

Returns the filter string that generated the InvalidSyntaxException object.

Returns:String

The invalid filter string.

See Also
BundleContext#getServiceReferences(Class, String), BundleContext#getServiceReferences(String, String), BundleContext#addServiceListener(ServiceListener, String)
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.3
messageback to summary
private static String message(String msg, String filter)

Return message string for super constructor.