PolicyContextException (Java EE 5)

Java EE API


javax.security.jacc Class PolicyContextException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.security.jacc.PolicyContextException
All Implemented Interfaces:
Serializable

public class PolicyContextException
extends Exception

Extends: Throwable > Exception

javax.security.jacc.PolicyConfiguration 接口的实现、javax.security.jacc.PolicyConfigurationFactory 抽象类、javax.security.jacc.PolicyContext 实用工具类和 javax.security.jacc.PolicyContextException 接口的实现抛出此经过检查的异常。

对于实现中发生的接口或所实现的类未声明的经过检查的异常,javax.security.jacc 实现类可以使用此异常重新抛出。

英文文档:

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
 
Method Summary
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

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 - - a String 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 - - a String 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 calling getCause() 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 calling getCause() on the constructed exception.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!