Package org.apache.maven.api.services
Class ModelResolverException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.maven.api.services.MavenException
org.apache.maven.api.services.ModelResolverException
- All Implemented Interfaces:
Serializable
Signals an error when resolving the path to an external model.
- See Also:
-
Constructor Summary
ConstructorDescriptionModelResolverException
(String message, String groupId, String artifactId, String version) Creates a new exception with specified detail message.ModelResolverException
(String message, String groupId, String artifactId, String version, Throwable cause) Creates a new exception with specified detail message and cause.ModelResolverException
(Throwable cause, String groupId, String artifactId, String version) Creates a new exception with specified cause -
Method Summary
Modifier and TypeMethodDescriptionGets the artifact id of the unresolvable model.Gets the group id of the unresolvable model.Gets the version of the unresolvable model.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModelResolverException
public ModelResolverException(String message, String groupId, String artifactId, String version, Throwable cause) Creates a new exception with specified detail message and cause.- Parameters:
message
- The detail message, may benull
.groupId
- The group id of the unresolvable model, may benull
.artifactId
- The artifact id of the unresolvable model, may benull
.version
- The version of the unresolvable model, may benull
.cause
- The cause, may benull
.
-
ModelResolverException
Creates a new exception with specified detail message.- Parameters:
message
- The detail message, may benull
.groupId
- The group id of the unresolvable model, may benull
.artifactId
- The artifact id of the unresolvable model, may benull
.version
- The version of the unresolvable model, may benull
.
-
ModelResolverException
Creates a new exception with specified cause- Parameters:
cause
-groupId
-artifactId
-version
-
-
-
Method Details
-
getGroupId
Gets the group id of the unresolvable model.- Returns:
- The group id of the unresolvable model, can be empty but never
null
.
-
getArtifactId
Gets the artifact id of the unresolvable model.- Returns:
- The artifact id of the unresolvable model, can be empty but never
null
.
-
getVersion
Gets the version of the unresolvable model.- Returns:
- The version of the unresolvable model, can be empty but never
null
.
-