public class Problem extends Object
ProblemReporter.
 May indicate a potentially fatal problem (an error) or just a warning.
ProblemReporter| Constructor and Description | 
|---|
| Problem(String message,
       Location location)Create a new instance of the  Problemclass. | 
| Problem(String message,
       Location location,
       ParseState parseState)Create a new instance of the  Problemclass. | 
| Problem(String message,
       Location location,
       ParseState parseState,
       Throwable rootCause)Create a new instance of the  Problemclass. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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  ParseStateat the time of the error (may benull). | 
| 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 exception that caused the error (may be  null). | 
| String | toString() | 
public Problem(String message, Location location)
Problem class.message - a message detailing the problemlocation - the location within a bean configuration source that triggered the errorpublic Problem(String message, Location location, ParseState parseState)
Problem class.message - a message detailing the problemparseState - the ParseState at the time of the errorlocation - the location within a bean configuration source that triggered the errorpublic Problem(String message, Location location, @Nullable ParseState parseState, @Nullable Throwable rootCause)
Problem class.message - a message detailing the problemrootCause - the underlying exception that caused the error (may be null)parseState - the ParseState at the time of the errorlocation - the location within a bean configuration source that triggered the errorpublic String getMessage()
public Location getLocation()
public String getResourceDescription()
getLocation()@Nullable public ParseState getParseState()
ParseState at the time of the error (may be null).@Nullable public Throwable getRootCause()
null).