Package org.osgi.framework
Class InvalidSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osgi.framework.InvalidSyntaxException
- All Implemented Interfaces:
Serializable
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.
- Author:
- $Id: 59696296eff1574fa844e3a0a975ba6c83ec59af $
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidSyntaxException(String msg, String filter) Creates an exception of typeInvalidSyntaxException.InvalidSyntaxException(String msg, String filter, Throwable cause) Creates an exception of typeInvalidSyntaxException. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns the cause of this exception ornullif no cause was set.Returns the filter string that generated theInvalidSyntaxExceptionobject.Initializes the cause of this exception to the specified value.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidSyntaxException
Creates an exception of typeInvalidSyntaxException.This method creates an
InvalidSyntaxExceptionobject with the specified message and the filter string which generated the exception.- Parameters:
msg- The message.filter- The invalid filter string.
-
InvalidSyntaxException
Creates an exception of typeInvalidSyntaxException.This method creates an
InvalidSyntaxExceptionobject 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
-
-
Method Details
-
getFilter
Returns the filter string that generated theInvalidSyntaxExceptionobject.- Returns:
- The invalid filter string.
- See Also:
-
getCause
Returns the cause of this exception ornullif no cause was set. -
initCause
Initializes the cause of this exception to the specified value.- Overrides:
initCausein classThrowable- Parameters:
cause- The cause of this exception.- Returns:
- This exception.
- Throws:
IllegalArgumentException- If the specified cause is this exception.IllegalStateException- If the cause of this exception has already been set.- Since:
- 1.3
-