public class ModelBuildingException extends Exception
getProblems()
to query the
details of the failure.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@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
.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
.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.