public class

Problem

extends Object
java.lang.Object
   ↳ org.springframework.beans.factory.parsing.Problem

Class Overview

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.

See Also

Summary

Public Constructors
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.
Public Methods
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 expection that caused the error (may be null).
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Problem (String message, Location location)

Also: SpringBeans

Create a new instance of the Problem class.

Parameters
message a message detailing the problem
location the location within a bean configuration source that triggered the error

public Problem (String message, Location location, ParseState parseState)

Also: SpringBeans

Create a new instance of the Problem class.

Parameters
message a message detailing the problem
location the location within a bean configuration source that triggered the error
parseState the ParseState at the time of the error

public Problem (String message, Location location, ParseState parseState, Throwable rootCause)

Also: SpringBeans

Create a new instance of the Problem class.

Parameters
message a message detailing the problem
location the location within a bean configuration source that triggered the error
parseState the ParseState at the time of the error
rootCause the underlying expection that caused the error (may be null)

Public Methods

public Location getLocation ()

Also: SpringBeans

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

public String getMessage ()

Also: SpringBeans

Get the message detailing the problem.

public ParseState getParseState ()

Also: SpringBeans

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

public String getResourceDescription ()

Also: SpringBeans

Get the description of the bean configuration source that triggered the error, as contained within this Problem's Location object.

See Also

public Throwable getRootCause ()

Also: SpringBeans

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

public String toString ()