Class Problem
java.lang.Object
org.springframework.beans.factory.parsing.Problem
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.
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new instance of theProblemclass.Problem(String message, Location location, ParseState parseState) Create a new instance of theProblemclass.Problem(String message, Location location, ParseState parseState, Throwable rootCause) Create a new instance of theProblemclass.
- 
Method SummaryModifier and TypeMethodDescriptionGet the location within a bean configuration source that triggered the error.Get the message detailing the problem.Get theParseStateat the time of the error (may benull).Get the description of the bean configuration source that triggered the error, as contained within this Problem's Location object.Get the underlying exception that caused the error (may benull).toString()
- 
Constructor Details- 
ProblemCreate a new instance of theProblemclass.- Parameters:
- message- a message detailing the problem
- location- the location within a bean configuration source that triggered the error
 
- 
ProblemCreate a new instance of theProblemclass.- Parameters:
- message- a message detailing the problem
- parseState- the- ParseStateat the time of the error
- location- the location within a bean configuration source that triggered the error
 
- 
Problempublic Problem(String message, Location location, @Nullable ParseState parseState, @Nullable Throwable rootCause) Create a new instance of theProblemclass.- Parameters:
- message- a message detailing the problem
- rootCause- the underlying exception that caused the error (may be- null)
- parseState- the- ParseStateat the time of the error
- location- the location within a bean configuration source that triggered the error
 
 
- 
- 
Method Details- 
getMessageGet the message detailing the problem.
- 
getLocationGet the location within a bean configuration source that triggered the error.
- 
getResourceDescriptionGet the description of the bean configuration source that triggered the error, as contained within this Problem's Location object.- See Also:
 
- 
getParseStateGet theParseStateat the time of the error (may benull).
- 
getRootCauseGet the underlying exception that caused the error (may benull).
- 
toString
 
-