|
||||||||||
| 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. |
| Method Summary | |
|---|---|
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 |
getLocation()
Gets the location of 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. |
| Method Detail |
|---|
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.String getLocation()
getModelId(), getSource(), getLineNumber() and getColumnNumber(). The exact
syntax of the returned value is undefined.
null.java.lang.Exception getException()
null if not applicable.java.lang.String getMessage()
null.ModelProblem.Severity getSeverity()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||