public interface ModelProblem
Modifier and Type | Interface and Description |
---|---|
static class |
ModelProblem.Severity
The different severity levels for a problem, in decreasing order.
|
static class |
ModelProblem.Version |
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Gets the one-based index of the column containing the problem.
|
java.lang.Exception |
getException()
Gets the exception that caused this problem (if any).
|
int |
getLineNumber()
Gets the one-based index of the line containing the problem.
|
java.lang.String |
getMessage()
Gets the message that describes this problem.
|
java.lang.String |
getModelId()
Gets the identifier of the model from which the problem originated.
|
ModelProblem.Severity |
getSeverity()
Gets the severity level of this problem.
|
java.lang.String |
getSource()
Gets the hint about the source of the problem.
|
ModelProblem.Version |
getVersion()
Gets the applicable maven version/validation level of this problem
|
java.lang.String getSource()
null
.int getLineNumber()
getSource()
.int getColumnNumber()
getSource()
.java.lang.String getModelId()
groupId:artifactId:version
the returned identifier need not be complete. The identifier is derived
from the information that is available at the point the problem occurs and as such merely serves as a best effort
to provide information to the user to track the problem back to its origin.null
.java.lang.Exception getException()
null
if not applicable.java.lang.String getMessage()
null
.ModelProblem.Severity getSeverity()
null
.ModelProblem.Version getVersion()
null
.