|
OSGi™ Service Platform Release 4 Version 4.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.osgi.framework.InvalidSyntaxException
public class InvalidSyntaxException
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.
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Returns the cause of this exception or null if no cause was
set. |
java.lang.String |
getFilter()
Returns the filter string that generated the InvalidSyntaxException object. |
java.lang.Throwable |
initCause(java.lang.Throwable cause)
Initializes the cause of this exception to the specified value. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
set.
getCause
in class java.lang.Throwable
null
if no cause was
set.public java.lang.Throwable initCause(java.lang.Throwable cause)
initCause
in class java.lang.Throwable
cause
- The cause of this exception.
java.lang.IllegalArgumentException
- If the specified cause is this
exception.
java.lang.IllegalStateException
- If the cause of this exception has already
been set.
|
OSGi™ Service Platform Release 4 Version 4.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |