类 PlaceholderResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cn.taketoday.util.PlaceholderResolutionException
- 所有已实现的接口:
Serializable
Thrown when the resolution of placeholder failed. This exception provides
the placeholder as well as the hierarchy of values that led to the issue.
- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明(专用程序包)PlaceholderResolutionException(String reason, String placeholder, String value) Create an exception using the specified reason for its message.privatePlaceholderResolutionException(String reason, String placeholder, List<String> values) -
方法概要
修饰符和类型方法说明private static StringbuildMessage(String reason, List<String> values) Return the placeholder that could not be resolved.Return a contextualized list of the resolution attempts that led to this exception, where the first element is the value that generated this exception.(专用程序包) PlaceholderResolutionExceptionReturn aPlaceholderResolutionExceptionthat provides an additional parent value.
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
reason
-
placeholder
-
values
-
-
构造器详细资料
-
PlaceholderResolutionException
Create an exception using the specified reason for its message.- 参数:
reason- the reason for the exception, should contain the placeholderplaceholder- the placeholdervalue- the original expression that led to the issue if available
-
PlaceholderResolutionException
-
-
方法详细资料
-
buildMessage
-
withValue
Return aPlaceholderResolutionExceptionthat provides an additional parent value.- 参数:
value- the parent value to add- 返回:
- a new exception with the parent value added
-
getPlaceholder
Return the placeholder that could not be resolved.- 返回:
- the unresolvable placeholder
-
getValues
Return a contextualized list of the resolution attempts that led to this exception, where the first element is the value that generated this exception.- 返回:
- the stack of values that led to this exception
-