Example usage for org.springframework.beans.factory.parsing FailFastProblemReporter error

List of usage examples for org.springframework.beans.factory.parsing FailFastProblemReporter error

Introduction

In this page you can find the example usage for org.springframework.beans.factory.parsing FailFastProblemReporter error.

Prototype

@Override
public void error(Problem problem) 

Source Link

Document

Throws a BeanDefinitionParsingException detailing the error that has occurred.

Usage

From source file:org.springframework.beans.factory.parsing.FailFastProblemReporterTests.java

@Test(expected = BeanDefinitionParsingException.class)
public void testError() throws Exception {
    FailFastProblemReporter reporter = new FailFastProblemReporter();
    reporter.error(new Problem("VGER", new Location(new DescriptiveResource("here")), null,
            new IllegalArgumentException()));
}