org.osgi.framework
Class InvalidSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.osgi.framework.InvalidSyntaxException
All Implemented Interfaces:
java.io.Serializable

public class InvalidSyntaxException
extends java.lang.Exception

A Framework 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.

Version:
$Revision: 1.1 $
Author:
Open Services Gateway Initiative
See Also:
Serialized Form

Constructor Summary
InvalidSyntaxException(java.lang.String msg, java.lang.String filter)
          Creates an exception of type InvalidSyntaxException.
 
Method Summary
 java.lang.String getFilter()
          Returns the filter string that generated the InvalidSyntaxException object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidSyntaxException

public InvalidSyntaxException(java.lang.String msg,
                              java.lang.String filter)
Creates an exception of type InvalidSyntaxException.

This method creates an InvalidSyntaxException object with the specified message and the filter string which generated the exception.

Parameters:
msg - The message.
filter - The invalid filter string.
Method Detail

getFilter

public final java.lang.String getFilter()
Returns the filter string that generated the InvalidSyntaxException object.

Returns:
The invalid filter string.
See Also:
BundleContext.getServiceReferences(java.lang.String, java.lang.String), BundleContext.addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.