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 conforms to the general purpose exception chaining mechanism.
Constructor and Description |
---|
InvalidSyntaxException(String msg,
String filter)
Creates an exception of type
InvalidSyntaxException . |
InvalidSyntaxException(String msg,
String filter,
Throwable cause)
Creates an exception of type
InvalidSyntaxException . |
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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.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.public Throwable initCause(Throwable cause)
initCause
in class Throwable
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.Copyright © 2018 JBoss by Red Hat. All rights reserved.