|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.security.jacc Class PolicyContextException
java.lang.Object java.lang.Throwable java.lang.Exception javax.security.jacc.PolicyContextException
- All Implemented Interfaces:
- Serializable
public class PolicyContextException
- extends Exception
javax.security.jacc.PolicyConfiguration
接口的实现、javax.security.jacc.PolicyConfigurationFactory
抽象类、javax.security.jacc.PolicyContext
实用工具类和 javax.security.jacc.PolicyContextException
接口的实现抛出此经过检查的异常。
对于实现中发生的接口或所实现的类未声明的经过检查的异常,javax.security.jacc 实现类可以使用此异常重新抛出。
See also | java.lang.Exception, javax.security.jacc.PolicyConfiguration, javax.security.jacc.PolicyConfigurationFactory, javax.security.jacc.PolicyContext, javax.security.jacc.PolicyContextHandler |
This checked exception is thrown by implementations of the
javax.security.jacc.PolicyConfiguration
Interface, the
javax.security.jacc.PolicyConfigurationFactory
abstract class,
the javax.security.jacc.PolicyContext
utility class, and
implementations of the
javax.security.jacc.PolicyContextException
Interface.
This exception is used by javax.security.jacc implementation classes to rethrow checked exceptions ocurring within an implementation that are not declared by the interface or class being implemented.
- Author:
- Ron Monzillo, Gary Ellison
- See Also:
Exception
,PolicyConfiguration
,PolicyConfigurationFactory
,PolicyContext
,PolicyContextHandler
, Serialized Form
Constructor Summary | |
---|---|
PolicyContextException()
Constructs a new PolicyContextException with null as its detail message. |
|
PolicyContextException(String msg)
Constructs a new PolicyContextException with the specified detail message |
|
PolicyContextException(String msg,
Throwable cause)
Constructs a new PolicyContextException with the specified detail message and cause. |
|
PolicyContextException(Throwable cause)
Constructs a new PolicyContextException with the specified cause. |
Method Summary |
---|
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 |
---|
public
PolicyContextException()
构造新的 PolicyContextException,将 null
作为其详细消息,描述异常的原因。
英文文档:
PolicyContextException
public PolicyContextException()
- Constructs a new PolicyContextException with
null
as its detail message. describing the cause of the exception.
public
PolicyContextException(String msg)
构造带指定详细消息的新 PolicyContextException
msg |
一个 String ,它包含描述异常原因的详细消息。 |
PolicyContextException
public PolicyContextException(String msg)
- Constructs a new PolicyContextException with the specified detail message
- Parameters:
msg
- - aString
containing a detail message describing the cause of the exception.
public
PolicyContextException(String msg, Throwable cause)
构造带指定详细消息和原因的新 PolicyContextException。cause 将被封装在构造的异常中。
msg |
一个 String ,它包含描述异常原因的详细消息。 |
cause |
“导致”构造此异常的 Throwable。允许 null 值,以后可以对构造的异常调用 getCause() 获取通过此参数传递的值。 |
PolicyContextException
public PolicyContextException(String msg, Throwable cause)
- Constructs a new PolicyContextException with the specified detail message
and cause. The cause will be encapsulated in the constructed exception.
- Parameters:
msg
- - aString containing a detail message describing the cause of the exception.
cause
- - the Throwable that is "causing" this exception to be constructed. A null value is permitted, and the value passed through this parameter may subsequently be retrieved by callinggetCause()
on the constructed exception.
public
PolicyContextException(Throwable cause)
构造带指定 cause 的新 PolicyContextException。cause 将被封装在构造的异常中。
cause |
“导致”构造此异常的 Throwable。允许 null 值,以后可以对构造的异常调用 getCause() 获取通过此参数传递的值。 |
PolicyContextException
public PolicyContextException(Throwable cause)
- Constructs a new PolicyContextException with the specified cause.
The cause will be encapsulated in the constructed exception.
- Parameters:
cause
- - the Throwable that is "causing" this exception to be constructed. A null value is permitted, and the value passed through this parameter may subsequently be retrieved by callinggetCause()
on the constructed exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!