类 PlaceholderResolutionException

所有已实现的接口:
Serializable

public class PlaceholderResolutionException extends IllegalArgumentException
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
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • reason

      private final String reason
    • placeholder

      private final String placeholder
    • values

      private final List<String> values
  • 构造器详细资料

    • PlaceholderResolutionException

      PlaceholderResolutionException(String reason, String placeholder, @Nullable String value)
      Create an exception using the specified reason for its message.
      参数:
      reason - the reason for the exception, should contain the placeholder
      placeholder - the placeholder
      value - the original expression that led to the issue if available
    • PlaceholderResolutionException

      private PlaceholderResolutionException(String reason, String placeholder, List<String> values)
  • 方法详细资料

    • buildMessage

      private static String buildMessage(String reason, List<String> values)
    • withValue

      Return a PlaceholderResolutionException that provides an additional parent value.
      参数:
      value - the parent value to add
      返回:
      a new exception with the parent value added
    • getPlaceholder

      public String getPlaceholder()
      Return the placeholder that could not be resolved.
      返回:
      the unresolvable placeholder
    • getValues

      public List<String> 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