PropertyNotFoundException (Java EE 5)

Java EE API


javax.el Class PropertyNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.el.ELException
                  extended by javax.el.PropertyNotFoundException
All Implemented Interfaces:
Serializable

public class PropertyNotFoundException
extends ELException

Extends: Throwable > Exception > RuntimeException > ELException

如果对 ValueExpressionMethodExpression 求值时无法找到属性,则抛出该异常。

例如,如果设置数组值时索引超出边界,或者获取 JavaBean 属性的值时遇到不可读的属性,则可能触发此异常。

英文文档:

Thrown when a property could not be found while evaluating a ValueExpression or MethodExpression.

For example, this could be triggered by an index out of bounds while setting an array value, or by an unreadable property while getting the value of a JavaBeans property.

Since:
JSP 2.1
See Also:
Serialized Form

Constructor Summary
 
Method Summary
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public PropertyNotFoundException()
创建不带详细消息的 PropertyNotFoundException
英文文档:

PropertyNotFoundException

public PropertyNotFoundException()
Creates a PropertyNotFoundException with no detail message.


public PropertyNotFoundException(String message)
创建带提供的详细消息的 PropertyNotFoundException
message 详细信息
英文文档:

PropertyNotFoundException

public PropertyNotFoundException(String message)
Creates a PropertyNotFoundException with the provided detail message.

Parameters:
message - the detail message


public PropertyNotFoundException(Throwable exception)
创建带给定根本原因的 PropertyNotFoundException
exception 此异常的根本原因
英文文档:

PropertyNotFoundException

public PropertyNotFoundException(Throwable exception)
Creates a PropertyNotFoundException with the given root cause.

Parameters:
exception - the originating cause of this exception


public PropertyNotFoundException(String pMessage, Throwable pRootCause)
创建带给定详细消息和根本原因的 PropertyNotFoundException
pMessage 详细信息
pRootCause 此异常的根本原因
英文文档:

PropertyNotFoundException

public PropertyNotFoundException(String pMessage,
                                 Throwable pRootCause)
Creates a PropertyNotFoundException with the given detail message and root cause.

Parameters:
pMessage - the detail message
pRootCause - the originating cause of this exception



Submit a bug or feature

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

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

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