|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.maven.model.building.ModelBuildingException
public class ModelBuildingException
Signals one ore more errors during model building. The model builder tries to collect as many problems as possible
before eventually failing to provide callers with rich error information. Use getProblems()
to query the
details of the failure.
Constructor Summary | |
---|---|
ModelBuildingException(ModelBuildingResult result)
Creates a new exception from the specified interim result and its associated problems. |
|
ModelBuildingException(Model model,
String modelId,
List<ModelProblem> problems)
Deprecated. Use ModelBuildingException(ModelBuildingResult) instead. |
Method Summary | |
---|---|
Model |
getModel()
Gets the model that could not be built properly. |
String |
getModelId()
Gets the identifier of the POM whose effective model could not be built. |
List<ModelProblem> |
getProblems()
Gets the problems that caused this exception. |
ModelBuildingResult |
getResult()
Gets the interim result of the model building up to the point where it failed. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public ModelBuildingException(Model model, String modelId, List<ModelProblem> problems)
ModelBuildingException(ModelBuildingResult)
instead.
model
- The model that could not be built, may be null
.modelId
- The identifier of the model that could not be built, may be null
.problems
- The problems that causes this exception, may be null
.public ModelBuildingException(ModelBuildingResult result)
result
- The interim result, may be null
.Method Detail |
---|
public ModelBuildingResult getResult()
null
if not available.public Model getModel()
null
if not available.public String getModelId()
<groupId>:<artifactId>:<version>
but some of these coordinates may still be unknown at the point the
exception is thrown so this information is merely meant to assist the user.
null
.public List<ModelProblem> getProblems()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |