|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModelProblem
Describes a problem that was encountered during model building. A problem can either be an exception that was thrown or a simple string message. In addition, a problem carries a hint about its source, e.g. the POM file that exhibits the problem.
Nested Class Summary | |
---|---|
static class |
ModelProblem.Severity
The different severity levels for a problem, in decreasing order. |
static class |
ModelProblem.Version
|
Method Summary | |
---|---|
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 |
Method Detail |
---|
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |