org.osgi.framework.InvalidSyntaxException Class Reference

List of all members.


Detailed Description

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.14

Definition at line 34 of file InvalidSyntaxException.java.


Public Member Functions

 InvalidSyntaxException (String msg, String filter)
 Creates an exception of type InvalidSyntaxException.
 InvalidSyntaxException (String msg, String filter, Throwable cause)
 Creates an exception of type InvalidSyntaxException.
String getFilter ()
 Returns the filter string that generated the InvalidSyntaxException object.
Throwable getCause ()
 Returns the cause of this exception or null if no cause was specified when this exception was created.
Throwable initCause (Throwable cause)
 The cause of this exception can only be set when constructed.

Constructor & Destructor Documentation

org.osgi.framework.InvalidSyntaxException.InvalidSyntaxException ( String  msg,
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.

Definition at line 56 of file InvalidSyntaxException.java.

org.osgi.framework.InvalidSyntaxException.InvalidSyntaxException ( String  msg,
String  filter,
Throwable  cause 
)

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.
cause The cause of this exception.
Since:
1.3

Definition at line 75 of file InvalidSyntaxException.java.


Member Function Documentation

String org.osgi.framework.InvalidSyntaxException.getFilter (  ) 

Returns the filter string that generated the InvalidSyntaxException object.

Returns:
The invalid filter string.
See also:
BundleContext.getServiceReferences

BundleContext.addServiceListener(ServiceListener,String)

Definition at line 89 of file InvalidSyntaxException.java.

Referenced by org.osgi.service.condpermadmin.BundleLocationCondition.getCondition().

Throwable org.osgi.framework.InvalidSyntaxException.getCause (  ) 

Returns the cause of this exception or null if no cause was specified when this exception was created.

Returns:
The cause of this exception or null if no cause was specified.
Since:
1.3

Definition at line 101 of file InvalidSyntaxException.java.

Throwable org.osgi.framework.InvalidSyntaxException.initCause ( Throwable  cause  ) 

The cause of this exception can only be set when constructed.

Parameters:
cause Cause of the exception.
Returns:
This object.
Exceptions:
java.lang.IllegalStateException This method will always throw an IllegalStateException since the cause of this exception can only be set when constructed.
Since:
1.3

Definition at line 115 of file InvalidSyntaxException.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:24 2010 for OpenMobileIS by  doxygen 1.5.4