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
Version
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Gets the one-based index of the column containing the problem.
|
Exception |
getException()
Gets the exception that caused this problem (if any).
|
int |
getLineNumber()
Gets the one-based index of the line containing the problem.
|
String |
getMessage()
Gets the message that describes this problem.
|
String |
getModelId()
Gets the identifier of the model from which the problem originated.
|
ModelProblem.Severity |
getSeverity()
Gets the severity level of this problem.
|
String |
getSource()
Gets the hint about the source of the problem.
|
ModelProblem.Version |
getVersion()
Gets the applicable maven version/validation level of this problem
|
String getSource()
null
.int getLineNumber()
getSource()
.int getColumnNumber()
getSource()
.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
.Exception getException()
null
if not applicable.String getMessage()
null
.ModelProblem.Severity getSeverity()
null
.ModelProblem.Version getVersion()
null
.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.