|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.faces.convert Class ConverterException
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.faces.FacesException javax.faces.convert.ConverterException
- All Implemented Interfaces:
- Serializable
public class ConverterException
- extends FacesException
ConverterException 是由 Converter
的 getAsObject()
或 getAsText()
方法抛出的异常,表示无法执行所请求的转换。
ConverterException is an exception thrown by the
getAsObject()
or getAsText()
method of a
Converter
, to indicate that the requested conversion cannot
be performed.
- See Also:
- Serialized Form
Constructor Summary | |
---|---|
ConverterException()
Construct a new exception with no detail message or root cause. |
|
ConverterException(FacesMessage message)
Construct a new exception with the specified detail message and no root cause. |
|
ConverterException(FacesMessage message,
Throwable cause)
Construct a new exception with the specified detail message and root cause. |
|
ConverterException(String message)
Construct a new exception with the specified detail message and no root cause. |
|
ConverterException(String message,
Throwable cause)
Construct a new exception with the specified detail message and root cause. |
|
ConverterException(Throwable cause)
Construct a new exception with the specified root cause. |
Method Summary | |
---|---|
FacesMessage |
getFacesMessage()
Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there. |
Methods inherited from class javax.faces.FacesException |
---|
getCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, 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
ConverterException()
构造不带详细消息或根本原因的新异常。
ConverterException
public ConverterException()
Construct a new exception with no detail message or root cause.
public
ConverterException(String message)
构造带指定详细消息但不带根本原因的新异常。
message | 此异常的详细消息 |
ConverterException
public ConverterException(String message)
Construct a new exception with the specified detail message and no root cause.
- Parameters:
message
- The detail message for this exception
public
ConverterException(Throwable cause)
构造带指定根本原因的新异常。详细消息将被设置为 (cause == null ? null :cause.toString()
cause | 此异常的根本原因 |
ConverterException
public ConverterException(Throwable cause)
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 exception
public
ConverterException(String message, Throwable cause)
构造带指定详细消息和根本原因的新异常。
message | 此异常的详细消息 |
cause | 此异常的根本原因 |
ConverterException
public ConverterException(String message, Throwable cause)
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 exception
public
ConverterException(FacesMessage message)
构造带指定详细消息但不带根本原因的新异常。
message | 此异常的详细消息 |
ConverterException
public ConverterException(FacesMessage message)
Construct a new exception with the specified detail message and no root cause.
- Parameters:
message
- The detail message for this exception
public
ConverterException(FacesMessage message, Throwable cause)
构造带指定详细消息和根本原因的新异常。
message | 此异常的详细消息 |
cause | 此异常的根本原因 |
ConverterException
public ConverterException(FacesMessage message, Throwable cause)
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 exception
Method Detail |
---|
public FacesMessage
getFacesMessage()
返回与此异常关联的 FacesMessage;只有当抛出此异常实例的转换器包含它时才能使用。
getFacesMessage
public FacesMessage getFacesMessage()
Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there.
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!