|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.parsing.Problem
public class 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.
ProblemReporter
Field Summary | |
---|---|
private Location |
location
|
private java.lang.String |
message
|
private ParseState |
parseState
|
private java.lang.Throwable |
rootCause
|
Constructor Summary | |
---|---|
Problem(java.lang.String message,
Location location)
Create a new instance of the Problem class. |
|
Problem(java.lang.String message,
Location location,
ParseState parseState)
Create a new instance of the Problem class. |
|
Problem(java.lang.String message,
Location location,
ParseState parseState,
java.lang.Throwable rootCause)
Create a new instance of the Problem class. |
Method Summary | |
---|---|
Location |
getLocation()
Get the location within a bean configuration source that triggered the error. |
java.lang.String |
getMessage()
Get the message detailing the problem. |
ParseState |
getParseState()
Get the ParseState at the time of the error (may be null ). |
java.lang.String |
getResourceDescription()
Get the description of the bean configuration source that triggered the error, as contained within this Problem's Location object. |
java.lang.Throwable |
getRootCause()
Get the underlying expection that caused the error (may be null ). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.String message
private final Location location
private final ParseState parseState
private final java.lang.Throwable rootCause
Constructor Detail |
---|
public Problem(java.lang.String message, Location location)
Problem
class.
message
- a message detailing the problemlocation
- the location within a bean configuration source that triggered the errorpublic Problem(java.lang.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(java.lang.String message, Location location, ParseState parseState, java.lang.Throwable rootCause)
Problem
class.
message
- a message detailing the problemrootCause
- the underlying expection 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 errorMethod Detail |
---|
public java.lang.String getMessage()
public Location getLocation()
public java.lang.String getResourceDescription()
getLocation()
public ParseState getParseState()
ParseState
at the time of the error (may be null
).
public java.lang.Throwable getRootCause()
null
).
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |