spring-framework / org.springframework.beans.factory.parsing / FailFastProblemReporter

FailFastProblemReporter

open class FailFastProblemReporter : 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.

Author
Rob Harrop

Author
Juergen Hoeller

Author
Rick Evans

Since
2.0

Constructors

<init>

FailFastProblemReporter()

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.

Functions

error

open fun error(problem: Problem): Unit

Throws a BeanDefinitionParsingException detailing the error that has occurred.

fatal

open fun fatal(problem: Problem): Unit

Throws a BeanDefinitionParsingException detailing the error that has occurred.

setLogger

open fun setLogger(logger: Log): Unit

Set the Log that is to be used to report warnings.

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

warning

open fun warning(problem: Problem): Unit

Writes the supplied Problem to the Log at WARN level.