org.osgi.framework
public class InvalidSyntaxException extends Exception
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 is updated to conform to the general purpose exception chaining mechanism.
Version: $Revision: 1.16 $
Constructor Summary | |
---|---|
InvalidSyntaxException(String msg, String filter)
Creates an exception of type InvalidSyntaxException .
| |
InvalidSyntaxException(String msg, String filter, Throwable cause)
Creates an exception of type InvalidSyntaxException .
|
Method Summary | |
---|---|
Throwable | getCause()
Returns the cause of this exception or null if no cause
was specified when this exception was created.
|
String | getFilter()
Returns the filter string that generated the
InvalidSyntaxException object.
|
Throwable | initCause(Throwable cause)
The cause of this exception can only be set when constructed.
|
InvalidSyntaxException
.
This method creates an InvalidSyntaxException
object with
the specified message and the filter string which generated the
exception.
Parameters: msg The message. filter The invalid filter string.
InvalidSyntaxException
.
This method creates an InvalidSyntaxException
object with
the specified message and the filter string which generated the
exception.
Parameters: msg The message. filter The invalid filter string. cause The cause of this exception.
Since: 1.3
null
if no cause
was specified when this exception was created.
Returns: The cause of this exception or null
if no cause
was specified.
Since: 1.3
InvalidSyntaxException
object.
Returns: The invalid filter string.
See Also: BundleContext addServiceListener
Parameters: cause Cause of the exception.
Returns: This object.
Throws: java.lang.IllegalStateException This method will always throw an
IllegalStateException
since the cause of this
exception can only be set when constructed.
Since: 1.3