org.springframework.beans.factory.parsing

## 类 FailFastProblemReporter

- java.lang.Object
- - org.springframework.beans.factory.parsing.FailFastProblemReporter

- 所有已实现的接口:
    ProblemReporter

      public class FailFastProblemReporter
      extends Object
      implements ProblemReporter

  Simple `ProblemReporter` implementation that exhibits fail-fast behavior when errors are encountered.

  The first error encountered results in a `BeanDefinitionParsingException` being thrown.

  Warnings are written to `the log` for this class.

  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller, Rick Evans

- - ### 构造器概要

    构造器
    构造器和说明
    `FailFastProblemReporter()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `error(Problem problem)` Throws a `BeanDefinitionParsingException` detailing the error that has occurred.
    `void` | `fatal(Problem problem)` Throws a `BeanDefinitionParsingException` detailing the error that has occurred.
    `void` | `setLogger(Log logger)` Set the `logger` that is to be used to report warnings.
    `void` | `warning(Problem problem)` Writes the supplied `Problem` to the `Log` at `WARN` level.

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

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

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

    - #### FailFastProblemReporter

          public FailFastProblemReporter()

  - ### 方法详细资料

    - #### setLogger

          public void setLogger(@Nullable
                                Log logger)

      Set the `logger` that is to be used to report warnings.

      If set to `null` then a default `logger` set to the name of the instance class will be used.

      参数:
        `logger` - the `logger` that is to be used to report warnings

    - #### fatal

          public void fatal(Problem problem)

      Throws a `BeanDefinitionParsingException` detailing the error that has occurred.
      指定者:
        `fatal` 在接口中 `ProblemReporter`
      参数:
        `problem` - the source of the error

    - #### error

          public void error(Problem problem)

      Throws a `BeanDefinitionParsingException` detailing the error that has occurred.
      指定者:
        `error` 在接口中 `ProblemReporter`
      参数:
        `problem` - the source of the error

    - #### warning

          public void warning(Problem problem)

      Writes the supplied `Problem` to the `Log` at `WARN` level.
      指定者:
        `warning` 在接口中 `ProblemReporter`
      参数:
        `problem` - the source of the warning