类 InvalidSyntaxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.osgi.framework.InvalidSyntaxException
-
- 所有已实现的接口:
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.
- 作者:
- $Id: 59696296eff1574fa844e3a0a975ba6c83ec59af $
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
-
-
-
构造器详细资料
-
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.- 参数:
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.- 参数:
msg- The message.filter- The invalid filter string.cause- The cause of this exception.- 从以下版本开始:
- 1.3
-
-
方法详细资料
-
getFilter
public java.lang.String getFilter()
Returns the filter string that generated theInvalidSyntaxExceptionobject.- 返回:
- The invalid filter string.
- 另请参阅:
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.- 覆盖:
getCause在类中java.lang.Throwable- 返回:
- The cause of this exception or
nullif no cause was set. - 从以下版本开始:
- 1.3
-
initCause
public java.lang.Throwable initCause(java.lang.Throwable cause)
Initializes the cause of this exception to the specified value.- 覆盖:
initCause在类中java.lang.Throwable- 参数:
cause- The cause of this exception.- 返回:
- This exception.
- 抛出:
java.lang.IllegalArgumentException- If the specified cause is this exception.java.lang.IllegalStateException- If the cause of this exception has already been set.- 从以下版本开始:
- 1.3
-
-