|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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(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
set. |
String |
getFilter()
Returns the filter string that generated the InvalidSyntaxException object. |
Throwable |
initCause(Throwable cause)
Initializes the cause of this exception to the specified value. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InvalidSyntaxException(String msg, 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(String msg, String filter, 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 String getFilter()
InvalidSyntaxException
object.
BundleContext.getServiceReferences(java.lang.String, java.lang.String)
,
BundleContext.addServiceListener(ServiceListener,String)
public Throwable getCause()
null
if no cause was
set.
null
if no cause was
set.public Throwable initCause(Throwable cause)
cause
- The cause of this exception.
IllegalArgumentException
- If the specified cause is this
exception.
IllegalStateException
- If the cause of this exception has already
been set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |