类 Problem


  • public class Problem
    extends Object
    Represents a problem with a bean definition configuration. Mainly serves as common argument passed into a ProblemReporter.

    May indicate a potentially fatal problem (an error) or just a warning.

    从以下版本开始:
    2.0
    作者:
    Rob Harrop, Juergen Hoeller
    另请参阅:
    ProblemReporter
    • 构造器详细资料

      • Problem

        public Problem​(String message,
                       Location location)
        Create a new instance of the Problem class.
        参数:
        message - a message detailing the problem
        location - the location within a bean configuration source that triggered the error
      • Problem

        public Problem​(String message,
                       Location location,
                       ParseState parseState)
        Create a new instance of the Problem class.
        参数:
        message - a message detailing the problem
        parseState - the ParseState at the time of the error
        location - the location within a bean configuration source that triggered the error
      • Problem

        public Problem​(String message,
                       Location location,
                       ParseState parseState,
                       Throwable rootCause)
        Create a new instance of the Problem class.
        参数:
        message - a message detailing the problem
        rootCause - the underlying exception that caused the error (may be null)
        parseState - the ParseState at the time of the error
        location - the location within a bean configuration source that triggered the error