|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.faces.application Class ViewExpiredException
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.faces.FacesException javax.faces.application.ViewExpiredException
- All Implemented Interfaces:
- Serializable
public class ViewExpiredException
- extends FacesException
当尝试恢复视图 restoreView(javax.faces.context.FacesContext, String, String)
导致回发失败时,实现必须抛出此 FacesException
。
since | 1.2 |
Implementations must throw this FacesException
when
attempting to restore the view StateManager.restoreView(javax.faces.context.FacesContext, String, String)
results in failure on postback.
- Since:
- 1.2
- See Also:
- Serialized Form
Constructor Summary | |
---|---|
ViewExpiredException()
Construct a new exception with no detail message or root cause. |
|
ViewExpiredException(String viewId)
Construct a new exception with the specified view identifier. |
|
ViewExpiredException(String message,
String viewId)
Construct a new exception with the specified detail message and no root cause. |
|
ViewExpiredException(String message,
Throwable cause,
String viewId)
Construct a new exception with the specified detail message and root cause. |
|
ViewExpiredException(Throwable cause,
String viewId)
Construct a new exception with the specified root cause. |
Method Summary | |
---|---|
String |
getMessage()
Return the message for this exception prepended with the view identifier if the view identifier is not null , otherwise, return the
message. |
String |
getViewId()
Return the view identifier of this exception, or null if the
view identifier is nonexistent or unknown. |
Methods inherited from class javax.faces.FacesException |
---|
getCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, 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
ViewExpiredException()
构造不带详细消息或根本原因的新异常。
ViewExpiredException
public ViewExpiredException()
Construct a new exception with no detail message or root cause.
public
ViewExpiredException(String viewId)
构造带指定视图标识符的新异常。
viewId | 此异常的视图标识符 |
ViewExpiredException
public ViewExpiredException(String viewId)
Construct a new exception with the specified view identifier.
- Parameters:
viewId
- The view identifier for this exception
public
ViewExpiredException(String message, String viewId)
构造带指定详细消息但不带根本原因的新异常。
message | 此异常的详细消息 |
viewId | 此异常的视图标识符 |
ViewExpiredException
public ViewExpiredException(String message, String viewId)
Construct a new exception with the specified detail message and no root cause.
- Parameters:
message
- The detail message for this exceptionviewId
- The view identifier for this exception
public
ViewExpiredException(Throwable cause, String viewId)
构造带指定根本原因的新异常。详细消息将被设置为 (cause == null ? null :cause.toString()
cause | 此异常的根本原因 |
viewId | 此异常的视图标识符 |
ViewExpiredException
public ViewExpiredException(Throwable cause, String viewId)
Construct a new exception with the specified root cause. The detail message will be set to
(cause == null ? null : cause.toString()
- Parameters:
cause
- The root cause for this exceptionviewId
- The view identifier for this exception
public
ViewExpiredException(String message, Throwable cause, String viewId)
构造带指定详细消息和根本原因的新异常。
message | 此异常的详细消息 |
cause | 此异常的根本原因 |
viewId | 此异常的视图标识符 |
ViewExpiredException
public ViewExpiredException(String message, Throwable cause, String viewId)
Construct a new exception with the specified detail message and root cause.
- Parameters:
message
- The detail message for this exceptioncause
- The root cause for this exceptionviewId
- The view identifier for this exception
Method Detail |
---|
public String
getViewId()
返回此异常的视图标识符;如果视图标识符不存在或未知,则返回 null
。
getViewId
public String getViewId()
Return the view identifier of this exception, or
null
if the view identifier is nonexistent or unknown.
public String
getMessage()
如果视图标识符不为 null
,则返回此异常的消息并在前面加上视图标识符,否则,返回此消息。
getMessage
public String getMessage()
Return the message for this exception prepended with the view identifier if the view identifier is not
null
, otherwise, return the message.- Overrides:
getMessage
in classThrowable
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!