Package org.apache.maven.api.services
Class MavenBuilderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.maven.api.services.MavenException
org.apache.maven.api.services.MavenBuilderException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SettingsBuilderException
,ToolchainsBuilderException
Base class for all maven exceptions carrying
BuilderProblem
s.- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionMavenBuilderException
(String message, Throwable cause) MavenBuilderException
(String message, List<BuilderProblem> problems) -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
buildMessage
(String message, List<BuilderProblem> problems) Formats message out of problems: problems are sorted (in natural order ofBuilderProblem.Severity
) and then a list is built.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MavenBuilderException
-
MavenBuilderException
-
-
Method Details
-
buildMessage
Formats message out of problems: problems are sorted (in natural order ofBuilderProblem.Severity
) and then a list is built. These exceptions are usually thrown in "fatal" cases (and usually prevent Maven from starting), and these exceptions may end up very early on output. -
getProblems
-