org.springframework.beans.factory.parsing

## 类 Problem

- java.lang.Object
- - org.springframework.beans.factory.parsing.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(String message, Location location)` Create a new instance of the `Problem` class.
    `Problem(String message, Location location, ParseState parseState)` Create a new instance of the `Problem` class.
    `Problem(String message, Location location, ParseState parseState, Throwable rootCause)` Create a new instance of the `Problem` class.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Location` | `getLocation()` Get the location within a bean configuration source that triggered the error.
    `String` | `getMessage()` Get the message detailing the problem.
    `ParseState` | `getParseState()` Get the `ParseState` at the time of the error (may be `null`).
    `String` | `getResourceDescription()` Get the description of the bean configuration source that triggered the error, as contained within this Problem's Location object.
    `Throwable` | `getRootCause()` Get the underlying exception that caused the error (may be `null`).
    `String` | `toString()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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,
                         @Nullable
                         ParseState parseState,
                         @Nullable
                         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

  - ### 方法详细资料

    - #### getMessage

          public String getMessage()

      Get the message detailing the problem.

    - #### getLocation

          public Location getLocation()

      Get the location within a bean configuration source that triggered the error.

    - #### getResourceDescription

          public String getResourceDescription()

      Get the description of the bean configuration source that triggered the error, as contained within this Problem's Location object.
      另请参阅:
        `getLocation()`

    - #### getParseState

          @Nullable
          public ParseState getParseState()

      Get the `ParseState` at the time of the error (may be `null`).

    - #### getRootCause

          @Nullable
          public Throwable getRootCause()

      Get the underlying exception that caused the error (may be `null`).

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`