Package org.osgi.framework
Class InvalidSyntaxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.osgi.framework.InvalidSyntaxException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidSyntaxException extends java.lang.ExceptionA Framework exception used to indicate that a filter string has an invalid syntax.An
InvalidSyntaxExceptionobject indicates that a filter string parameter has an invalid syntax and cannot be parsed. SeeFilterfor a description of the filter string syntax.This exception conforms to the general purpose exception chaining mechanism.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringfilterThe invalid filter string.(package private) static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description InvalidSyntaxException(java.lang.String msg, java.lang.String filter)Creates an exception of typeInvalidSyntaxException.InvalidSyntaxException(java.lang.String msg, java.lang.String filter, java.lang.Throwable cause)Creates an exception of typeInvalidSyntaxException.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Returns the cause of this exception ornullif no cause was set.java.lang.StringgetFilter()Returns the filter string that generated theInvalidSyntaxExceptionobject.java.lang.ThrowableinitCause(java.lang.Throwable cause)Initializes the cause of this exception to the specified value.private static java.lang.Stringmessage(java.lang.String msg, java.lang.String filter)Return message string for super constructor.
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
filter
private final java.lang.String filter
The invalid filter string.
-
-
Constructor Detail
-
InvalidSyntaxException
public InvalidSyntaxException(java.lang.String msg, java.lang.String filter)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
public InvalidSyntaxException(java.lang.String msg, java.lang.String filter, java.lang.Throwable cause)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 Detail
-
message
private static java.lang.String message(java.lang.String msg, java.lang.String filter)Return message string for super constructor.
-
getFilter
public java.lang.String getFilter()
Returns the filter string that generated theInvalidSyntaxExceptionobject.- Returns:
- The invalid filter string.
- See Also:
BundleContext.getServiceReferences(Class, String),BundleContext.getServiceReferences(String, String),BundleContext.addServiceListener(ServiceListener,String)
-
getCause
public java.lang.Throwable getCause()
Returns the cause of this exception ornullif no cause was set.- Overrides:
getCausein classjava.lang.Throwable- Returns:
- The cause of this exception or
nullif no cause was set. - Since:
- 1.3
-
initCause
public java.lang.Throwable initCause(java.lang.Throwable cause)
Initializes the cause of this exception to the specified value.- Overrides:
initCausein classjava.lang.Throwable- Parameters:
cause- The cause of this exception.- Returns:
- This exception.
- Throws:
java.lang.IllegalArgumentException- If the specified cause is this exception.java.lang.IllegalStateException- If the cause of this exception has already been set.- Since:
- 1.3
-
-