org.osgi.framework
public class InvalidSyntaxException extends java.lang.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.
Constructor and Description |
---|
InvalidSyntaxException(java.lang.String msg,
java.lang.String filter)
Creates an exception of type
InvalidSyntaxException . |
InvalidSyntaxException(java.lang.String msg,
java.lang.String filter,
java.lang.Throwable cause)
Creates an exception of type
InvalidSyntaxException . |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Returns the cause of this exception or
null if no cause
was specified when this exception was created. |
java.lang.String |
getFilter()
Returns the filter string that generated the
InvalidSyntaxException object. |
java.lang.Throwable |
initCause(java.lang.Throwable cause)
The cause of this exception can only be set when constructed.
|
public InvalidSyntaxException(java.lang.String msg, java.lang.String filter)
InvalidSyntaxException
.
This method creates an InvalidSyntaxException
object with
the specified message and the filter string which generated the
exception.
msg
- The message.filter
- The invalid filter string.public InvalidSyntaxException(java.lang.String msg, java.lang.String filter, java.lang.Throwable cause)
InvalidSyntaxException
.
This method creates an InvalidSyntaxException
object with
the specified message and the filter string which generated the
exception.
msg
- The message.filter
- The invalid filter string.cause
- The cause of this exception.public java.lang.String getFilter()
InvalidSyntaxException
object.BundleContext.getServiceReferences(java.lang.String, java.lang.String)
,
BundleContext.addServiceListener(ServiceListener,String)
public java.lang.Throwable getCause()
null
if no cause
was specified when this exception was created.getCause
in class java.lang.Throwable
null
if no cause
was specified.public java.lang.Throwable initCause(java.lang.Throwable cause)
initCause
in class java.lang.Throwable
cause
- Cause of the exception.java.lang.IllegalStateException
- This method will always throw an
IllegalStateException
since the cause of this
exception can only be set when constructed.